Function at 0x40e4b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8e90
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x51d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40e4f6
lea ecx, [ebx + 0x10]
mov byte [ebx + 0xc], 1
push ecx
push 0
call fcn.00413200
lea edi, [esi + 0x78]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x90]
cmp dword [edi], eax
je 0x40e532
test eax, eax
jne 0x40e529
push 3
lea ecx, [ebp - 0x18]
call fcn.004aae00
mov ecx, edi
call fcn.00403110
lea ecx, [ebp - 0x18]
call fcn.004aaea0
jmp 0x40e532
push dword [eax]
mov ecx, edi
call fcn.00403070
mov eax, dword [esi + 0x98]
mov dword [edi + 8], eax
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x90]
cmp dword [esi], eax
je 0x40e574
test eax, eax
jne 0x40e56b
push 3
lea ecx, [ebp - 0x18]
call fcn.004aae00
mov ecx, esi
call fcn.00403110
lea ecx, [ebp - 0x18]
call fcn.004aaea0
jmp 0x40e574
push dword [eax]
mov ecx, esi
call fcn.00403070
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x98]
push ecx
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
push dword [esi + 0xac]
call fcn.0040f530
lea ecx, [esi + 0x24]
push ecx
push dword [esi + 0xac]
call fcn.00412f90
push dword [esi + 0x9c]
test ebx, ebx
mov dword [esi + 0xbc], 0x989680
mov ecx, esi
mov dword [esi + 0xc0], 0x3e8
setne al
mov byte [esi + 0xa8], 0
mov byte [esi + 0xa9], al
mov al, byte [ebp + 0xc]
mov byte [esi + 0xb8], al
call fcn.00411190
test al, al
je 0x40edcf
test ebx, ebx
je 0x40edcd
lea ecx, [ebx + 0x10]
push ecx
push dword [esi + 0xac]
call fcn.00413200
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [esi + 0xac], eax
jbe 0x40eaf4
lea ecx, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040f460
mov edi, 1
mov ecx, dword [eax + 0xc]
shl edi, cl
mov ecx, eax
call fcn.0040fe20
mov esi, dword [eax]
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.004aae00
lea ecx, [ebp - 0x48]
call fcn.00403110
lea ecx, [ebp - 0x20]
call fcn.004aaea0
mov ecx, dword [ebx + 0x18]
test edi, esi
mov esi, dword [ebx + 0x14]
mov eax, 0x92492493
je 0x40e90e
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x34], eax
jb 0x40e6c4
push 0x505e20
push 0x504c08
push 0
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40e6a3
int3
push 0
push 0x6c5
push 0x505ea8
push 0x505f78
push 0x5061b0
call fcn.004b5560
mov esi, dword [ebx + 0x14]
add esp, 0x14
mov eax, dword [ebp - 0x38]
mov byte [eax + esi + 0x18], 1
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x34], eax
jb 0x40e734
push 0x505e20
push 0x504c08
push 0
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40e713
int3
push 0
push 0x6c5
push 0x505ea8
push 0x508148
push 0x5061b0
call fcn.004b5560
mov edi, dword [esi + 0x5c]
add esp, 0x14
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebx + 0x18]
add eax, edi
mov edi, dword [ebx + 0x14]
sub ecx, edi
mov dword [ebp - 0x18], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x34], eax
jb 0x40e7a3
push 0x505e20
push 0x504c08
push 0
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40e782
int3
push 0
push 0x6c5
push 0x505ea8
push 0x505f78
push 0x5061b0
call fcn.004b5560
mov edi, dword [ebx + 0x14]
add esp, 0x14
add edi, dword [ebp - 0x38]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [edi], eax
je 0x40e7de
test eax, eax
jne 0x40e7d5
push 3
lea ecx, [ebp - 0x24]
call fcn.004aae00
mov ecx, edi
call fcn.00403110
lea ecx, [ebp - 0x24]
call fcn.004aaea0
jmp 0x40e7de
push dword [eax]
mov ecx, edi
call fcn.00403070
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x60]
mov edi, dword [esi + 0x5c]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x34], eax
jb 0x40e84c
push 0x505e20
push 0x504c08
push 0
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40e82b
int3
push 0
push 0x6c5
push 0x505ea8
push 0x508148
push 0x5061b0
call fcn.004b5560
mov edi, dword [esi + 0x5c]
add esp, 0x14
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebx + 0x18]
add eax, edi
mov edi, dword [ebx + 0x14]
sub ecx, edi
mov dword [ebp - 0x18], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x34], eax
jb 0x40e8bb
push 0x505e20
push 0x504c08
push 0
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40e89a
int3
push 0
push 0x6c5
push 0x505ea8
push 0x505f78
push 0x5061b0
call fcn.004b5560
mov edi, dword [ebx + 0x14]
add esp, 0x14
add edi, dword [ebp - 0x38]
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
cmp dword [edi + 0xc], eax
je 0x40e903
test eax, eax
jne 0x40e8f9
push 3
lea ecx, [ebp - 0x28]
call fcn.004aae00
lea ecx, [edi + 0xc]
call fcn.00403110
lea ecx, [ebp - 0x28]
call fcn.004aaea0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
jmp 0x40ead0
push dword [eax]
lea ecx, [edi + 0xc]
call fcn.00403070
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
jmp 0x40ead0
mov edi, dword [ebp - 0x34]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40e96c
push 0x505e20
push 0x504c08
push 0
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40e94b
int3
push 0
push 0x6c5
push 0x505ea8
push 0x505f78
push 0x5061b0
call fcn.004b5560
mov esi, dword [ebx + 0x14]
add esp, 0x14
mov eax, dword [ebp - 0x38]
mov byte [esi + eax + 0x18], 0
mov eax, 0x92492493
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x14]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40e9da
push 0x505e20
push 0x504c08
push 0
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40e9b9
int3
push 0
push 0x6c5
push 0x505ea8
push 0x505f78
push 0x5061b0
call fcn.004b5560
mov esi, dword [ebx + 0x14]
add esp, 0x14
mov edi, dword [ebp - 0x38]
add edi, esi
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x84]
cmp dword [edi], eax
je 0x40ea1b
test eax, eax
jne 0x40ea12
push 3
lea ecx, [ebp - 0x2c]
call fcn.004aae00
mov ecx, edi
call fcn.00403110
lea ecx, [ebp - 0x2c]
call fcn.004aaea0
jmp 0x40ea1b
push dword [eax]
mov ecx, edi
call fcn.00403070
mov eax, dword [esi + 0x8c]
mov dword [edi + 8], eax
mov eax, 0x92492493
mov ecx, dword [ebx + 0x18]
mov edi, dword [ebx + 0x14]
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x34], eax
jb 0x40ea8b
push 0x505e20
push 0x504c08
push 0
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40ea6a
int3
push 0
push 0x6c5
push 0x505ea8
push 0x505f78
push 0x5061b0
call fcn.004b5560
mov edi, dword [ebx + 0x14]
add esp, 0x14
add edi, dword [ebp - 0x38]
mov dword [ebp - 4], 6
mov eax, dword [esi + 0x84]
cmp dword [edi + 0xc], eax
je 0x40eaca
test eax, eax
jne 0x40eac0
push 3
lea ecx, [ebp - 0x14]
call fcn.004aae00
lea ecx, [edi + 0xc]
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
jmp 0x40eaca
push dword [eax]
lea ecx, [edi + 0xc]
call fcn.00403070
mov eax, dword [esi + 0x8c]
add dword [ebp - 0x30], 0x18
lea ecx, [esi + 0x40]
add dword [ebp - 0x38], 0x1c
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [esi + 0xac]
jb 0x40e617
lea edi, [esi + 0x78]
mov dword [ebp - 4], 7
mov eax, dword [edi]
cmp dword [ebx], eax
je 0x40eb29
test eax, eax
jne 0x40eb20
push 3
lea ecx, [ebp - 0x14]
call fcn.004aae00
mov ecx, ebx
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
jmp 0x40eb29
push dword [eax]
mov ecx, ebx
call fcn.00403070
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov dword [ebp - 4], 8
mov eax, dword [esi + 0x78]
cmp dword [ebx + 0x20], eax
je 0x40eb68
test eax, eax
jne 0x40eb5e
push 3
lea ecx, [ebp - 0x14]
call fcn.004aae00
lea ecx, [ebx + 0x20]
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
jmp 0x40eb68
push dword [eax]
lea ecx, [ebx + 0x20]
call fcn.00403070
mov eax, dword [esi + 0x80]
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
sub ecx, eax
mov dword [ebp - 0x30], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40ebda
push 0x505e20
push 0x504c08
push eax
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40ebb6
int3
push 0
push 0x6c5
push 0x505ea8
push 0x505f78
push 0x5061b0
call fcn.004b5560
mov eax, dword [ebx + 0x14]
add esp, 0x14
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 9
mov ecx, dword [ecx]
cmp dword [ebx + 0x2c], ecx
je 0x40ec15
test ecx, ecx
jne 0x40ec0b
push 3
lea ecx, [ebp - 0x14]
call fcn.004aae00
lea ecx, [ebx + 0x2c]
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
jmp 0x40ec15
push dword [ecx]
lea ecx, [ebx + 0x2c]
call fcn.00403070
mov eax, dword [ebp - 0x30]
lea ecx, [ebx + 0x2c]
push ecx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [ebx + 0x20]
call fcn.0040a720
mov ecx, dword [ebx + 0x28]
cmp ecx, dword [ebx + 0x34]
setne cl
mov byte [ebx + 0x38], cl
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
sub ecx, eax
mov dword [ebp - 0x30], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40eca1
push 0x505e20
push 0x504c08
push eax
push 0x6c5
push 0x505e40
push 2
call fcn.004b50f0
add esp, 0x18
cmp eax, 1
jne 0x40ec7b
int3
push 0
push 0x6c5
push 0x505ea8
push 0x505f78
push 0x5061b0
call fcn.004b5560
mov eax, dword [ebx + 0x14]
add esp, 0x14
mov dword [ebp - 0x30], eax
jmp 0x40eca4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0xa
mov eax, dword [eax + 0xc]
cmp dword [ebx + 0x3c], eax
je 0x40ecdd
test eax, eax
jne 0x40ecd3
push 3
lea ecx, [ebp - 0x14]
call fcn.004aae00
lea ecx, [ebx + 0x3c]
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
jmp 0x40ecdd
push dword [eax]
lea ecx, [ebx + 0x3c]
call fcn.00403070
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x44], eax
mov dword [ebp - 4], 0xb
mov ecx, dword [esi + 0x84]
cmp dword [ebx + 0x48], ecx
je 0x40ed22
test ecx, ecx
jne 0x40ed18
push 3
lea ecx, [ebp - 0x14]
call fcn.004aae00
lea ecx, [ebx + 0x48]
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
jmp 0x40ed22
push dword [ecx]
lea ecx, [ebx + 0x48]
call fcn.00403070
mov eax, dword [esi + 0x8c]
lea ecx, [ebx + 0x48]
mov dword [ecx + 8], eax
push ecx
lea ecx, [ebx + 0x3c]
call fcn.0040a720
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0x50]
setne al
mov byte [ebx + 0x54], al
mov dword [ebp - 4], 0xc
mov eax, dword [esi + 0x84]
cmp dword [ebx + 0x58], eax
je 0x40ed7f
test eax, eax
jne 0x40ed75
push 3
lea ecx, [ebp - 0x14]
call fcn.004aae00
lea ecx, [ebx + 0x58]
call fcn.00403110
lea ecx, [ebp - 0x14]
call fcn.004aaea0
jmp 0x40ed7f
push dword [eax]
lea ecx, [ebx + 0x58]
call fcn.00403070
mov eax, dword [esi + 0x8c]
mov dword [ebx + 0x60], eax
mov dword [ebp - 4], 0xd
mov eax, dword [esi + 0x84]
cmp dword [ebx + 0x64], eax
je 0x40edc4
test eax, eax
jne 0x40edba
push 3
lea ecx, [ebp - 0x1c]
call fcn.004aae00
lea ecx, [ebx + 0x64]
call fcn.00403110
lea ecx, [ebp - 0x1c]
call fcn.004aaea0
jmp 0x40edc4
push dword [eax]
lea ecx, [ebx + 0x64]
call fcn.00403070
mov eax, dword [esi + 0x8c]
mov dword [ebx + 0x6c], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ad990
mov esp, ebp
pop ebp
ret 8