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

Disassembly:
push 0xffffffffffffffff
push 0x441d52
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x451254]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451254]
xor eax, esp
push eax
lea eax, [esp + 0x8a0]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x8a8], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x8b0], 1
call fcn.0040f4b0
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x40e820
mov ecx, dword [esp + 0x3c]
sub ecx, eax
mov eax, 0x7e8472a9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40e883
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40e833
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 6
jne 0x40e883
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], ebp
mov word [ebx + 4], bp
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40e865
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push edx
push ecx
call fcn.00410a50
mov edx, dword [esp + 0x28]
push edx
call fcn.0042e0ba
add esp, 0xc
lea ebx, [esp + 0x34]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0040f980
mov eax, dword [esp + 0x30]
jmp 0x40eaef
mov eax, 7
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
lea esi, [esp + 0x48c]
call fcn.00410f30
mov byte [esp + 0x8a8], 4
mov esi, dword [esp + 0x38]
cmp esi, ebp
mov ecx, dword [esp + 0x3c]
jne 0x40e8c8
mov dword [esp + 0x18], ebp
jmp 0x40e8e1
mov edx, ecx
sub edx, esi
mov eax, 0x7e8472a9
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [esp + 0x18], ebp
jbe 0x40e9ad
mov dword [esp + 0x2c], ebp
jmp 0x40e8fb
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, ebp
je 0x40e916
sub ecx, esi
mov eax, 0x7e8472a9
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40e91f
call fcn.0042e886
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x7c]
lea ecx, [eax + esi]
push edx
call fcn.0040eb20
mov eax, 5
mov byte [esp + 0x8a8], al
cmp dword [esp + 0x34c], eax
je 0x40e95a
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x110]
lea ecx, [esp + 0x68]
call fcn.004019b0
jmp 0x40e987
cmp dword [esp + 0x52c], ebp
je 0x40e973
mov eax, dword [esp + 0x354]
cmp eax, dword [esp + 0x764]
jbe 0x40e987
lea eax, [esp + 0x7c]
lea ebx, [esp + 0x48c]
call fcn.0040ec50
mov ebx, dword [esp + 0x30]
lea esi, [esp + 0x7c]
mov byte [esp + 0x8a8], 4
call fcn.004110c0
add dword [esp + 0x2c], 0x40c
add edi, 1
cmp edi, dword [esp + 0x18]
jb 0x40e8f3
cmp dword [esp + 0x52c], ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
push ebp
lea eax, [esp + 0x68]
je 0x40e9c8
lea eax, [esp + 0x520]
call fcn.004019b0
cmp dword [esp + 0x58], ebp
jne 0x40ea23
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
je 0x40ea23
mov eax, dword [esp + 0x24]
mov edx, eax
sub edx, ecx
sar edx, 6
je 0x40ea23
xor esi, esi
xor edi, edi
lea esp, [esp]
cmp ecx, ebp
je 0x40ea23
sub eax, ecx
sar eax, 6
cmp esi, eax
jae 0x40ea23
push 0xffffffffffffffff
lea eax, [edi + ecx + 0x1c]
push ebp
lea ecx, [esp + 0x4c]
call fcn.004019b0
cmp dword [esp + 0x58], ebp
jne 0x40ea23
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esi, 1
add edi, 0x40
jmp 0x40e9f0
push 0xffffffffffffffff
mov edi, 7
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], ebp
push ebp
lea eax, [esp + 0x4c]
mov ecx, ebx
mov word [ebx + 4], bp
call fcn.004019b0
lea esi, [esp + 0x48c]
call fcn.004110c0
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x40ea64
mov eax, dword [esp + 0x64]
push eax
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
jb 0x40ea84
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0042e0ba
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
je 0x40eab5
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push edx
push ecx
call fcn.00410a50
mov edx, dword [esp + 0x28]
push edx
call fcn.0042e0ba
add esp, 0xc
mov esi, dword [esp + 0x38]
cmp esi, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
je 0x40eaed
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x40eae4
call fcn.004110c0
add esi, 0x40c
cmp esi, edi
jne 0x40ead1
mov esi, dword [esp + 0x38]
push esi
call fcn.0042e0ba
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x8a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.0042e4b4
add esp, 0x898
ret