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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x42d6e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x54
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x258], ebx
mov dword [ebx], 0x25
jb 0x40eb11
xor edi, edi
cmp esi, edi
je 0x40eb11
push 0x84
lea eax, [ebp - 0x98]
push edi
push eax
call fcn.0041b540
push 0x198
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0041b540
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x14], edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x18
stosd dword es:[edi], eax
lea eax, [ebp - 0x23c]
push eax
push 0x428284
push 0x15
push 0
push 0x428354
call dword [0x4271f4]
mov dword [ebp - 0x240], eax
test eax, eax
js 0x40eb09
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x40eb09
mov ecx, dword [eax]
lea edx, [ebp - 0x230]
push edx
push 0x198
push eax
call dword [ecx + 0x10]
mov dword [ebp - 0x240], eax
test eax, eax
js 0x40eafd
cmp byte [ebp - 0x230], 0
jne 0x40eafd
test byte [esi + 4], 1
mov ecx, dword [ebp - 0x234]
push esi
push dword [ebp - 0x220]
je 0x40e81c
call fcn.004041e9
mov dword [esi + 0xc], eax
dec eax
imul eax, eax, 0x44
add eax, 0x54
mov dword [esi + 8], eax
jmp 0x40eafa
call fcn.004041e9
mov edi, eax
lea eax, [edi - 1]
imul eax, eax, 0x44
add eax, 0x54
mov dword [ebp - 0x250], edi
mov dword [esi + 0xc], edi
cmp dword [ebp + 8], eax
jne 0x40eb11
cmp dword [esi + 8], eax
jne 0x40eb11
cmp edi, 2
ja 0x40e954
mov ecx, dword [ebp - 0x234]
push ebx
lea eax, [ebp - 0x98]
push eax
push 0x84
call fcn.0040de85
mov dword [ebp - 0x240], eax
test eax, eax
js 0x40eafd
mov eax, dword [ebp - 0x94]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x90]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x8c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x88]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x84]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x5c]
and eax, 0xf
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x40], eax
mov ax, word [ebp - 0x78]
mov word [esi + 0x2c], ax
cmp edi, 2
jne 0x40eafa
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 0x1c]
and eax, 0xf
mov dword [esi + 0x8c], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x80], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x88], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x90], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x84], eax
mov ax, word [ebp - 0x38]
mov word [esi + 0x70], ax
jmp 0x40eafa
mov eax, dword [ebp - 0x10c]
and dword [ebp - 0x238], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 8], eax
test edi, edi
je 0x40eafa
lea edi, [ebp - 0x212]
sub edi, esi
mov dword [ebp - 0x248], edi
lea edi, [ebp - 0x1f8]
sub edi, esi
mov dword [ebp - 0x254], edi
lea edi, [ebp - 0x204]
sub edi, esi
mov dword [ebp - 0x264], edi
lea edi, [ebp - 0x200]
sub edi, esi
mov dword [ebp - 0x25c], edi
lea eax, [ebp - 0x218]
lea edi, [ebp - 0x1fc]
sub edi, esi
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x24c], edi
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0x208]
lea ebx, [ebp - 0x216]
sub eax, esi
sub ecx, esi
sub ebx, esi
lea edi, [ebp - 0x218]
sub edi, esi
lea edx, [esi + 0x1c]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x270], edi
jmp 0x40ea28
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x268]
movzx eax, word [eax + edx]
mov edi, dword [ebp - 0x244]
mov edi, dword [edi]
movzx ebx, word [ebx + edx]
mov dword [edx], eax
mov ax, word [ecx + edx]
mov word [edx + 0x10], ax
mov eax, dword [ebp - 0x248]
movzx eax, word [eax + edx]
mov dword [edx - 0xc], edi
mov edi, dword [ebp - 0x270]
movzx edi, word [edi + edx]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + eax*4 - 0xfc]
mov dword [edx - 8], edi
mov dword [edx - 4], ebx
mov dword [edx + 0x30], ecx
cmp dword [esi], 5
jne 0x40eaa7
mov ecx, dword [ebp - 0x254]
mov ecx, dword [ecx + edx]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x264]
mov ecx, dword [ecx + edx]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x25c]
mov ecx, dword [ecx + edx]
mov dword [edx + 0x18], ecx
mov ecx, dword [ebp - 0x24c]
mov ecx, dword [ecx + edx]
mov dword [edx + 0x1c], ecx
lea ecx, [edx + 0x2c]
push ecx
push dword [ebp + eax*4 - 0x14]
mov ecx, dword [ebp - 0x234]
call fcn.00405772
cmp eax, 1
jne 0x40ead2
mov eax, dword [edx + 0x2c]
cmp eax, 1
je 0x40eacc
cmp eax, 3
jne 0x40ead2
mov dword [edx - 8], ebx
mov dword [edx - 4], edi
inc dword [ebp - 0x238]
mov eax, dword [ebp - 0x238]
add dword [ebp - 0x244], 0x44
add edx, 0x44
cmp eax, dword [ebp - 0x250]
jb 0x40ea16
mov ebx, dword [ebp - 0x258]
and dword [ebx], 0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x240]
jmp 0x40eb1c
mov eax, 0x80070057
mov dword [ebx], 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b52c
leave
ret 0xc