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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [0x44d344]
imul eax, dword [0x44d390]
mov ebx, dword [0x44d320]
mov dword [ebx], eax
mov eax, dword [0x44d338]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], eax
mov eax, dword [0x44d334]
mov dword [ebx + 0x14], eax
mov eax, dword [0x44d388]
shr eax, 0xa
test eax, eax
je 0x407855
mov edx, eax
xor ecx, ecx
jmp 0x4073a2
mov ecx, esi
sar edx, 1
lea esi, [ecx + 1]
jne 0x4073a0
mov dword [ebx + 0x18], ecx
xor edx, edx
nop
add edx, 1
sar eax, 1
jne 0x4073b0
sub edx, 1
mov eax, dword [0x44d38c]
mov ecx, 0xffffef53
mov esi, 1
mov dword [ebx + 0x1c], edx
mov edi, 2
mov edx, 0xffffffff
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov eax, dword [0x44d390]
mov word [ebx + 0x36], dx
mov word [ebx + 0x38], cx
mov word [ebx + 0x3a], si
mov dword [ebx + 0x28], eax
xor eax, eax
mov word [ebx + 0x34], ax
xor eax, eax
mov word [ebx + 0x3e], ax
xor eax, eax
mov word [ebx + 0x50], ax
xor eax, eax
mov word [ebx + 0x52], ax
mov eax, dword [0x44d394]
mov word [ebx + 0x3c], di
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov word [ebx + 0x58], ax
xor eax, eax
mov word [ebx + 0x5a], ax
movzx eax, word [0x44d3a2]
cmp dword [ebp + 8], 1
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 1
mov dword [ebx + 0x5c], eax
movzx eax, word [0x44d3a4]
mov dword [ebx + 0x54], 0xb
mov dword [ebx + 0x60], eax
movzx eax, word [0x44d3a0]
mov dword [ebx + 0x64], eax
je 0x407866
mov edi, dword [0x44d3ac]
lea esi, [ebp - 0x74]
mov dword [esp], esi
call fcn.0040b220
mov dword [esp], esi
mov dword [esp + 8], 0x16
mov dword [esp + 4], 0x4425c5
call fcn.0040b260
mov dword [esp], edi
call fcn.004318b8
mov dword [esp + 4], edi
lea edi, [ebx + 0x88]
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0040b260
lea eax, [ebp - 0x88]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040b340
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x88]
mov dword [ebx + 0x6c], ecx
mov ecx, dword [ebp - 0x80]
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x70], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [ebx + 0x74], ecx
mov dword [esp], edx
call dword [0x44f4f8]
mov esi, dword [0x44f4fc]
mov dword [ebx + 0x68], eax
movzx eax, word [ebx + 0x6c]
sub esp, 4
mov dword [esp], eax
call esi
mov word [ebx + 0x6c], ax
movzx eax, word [ebx + 0x6e]
sub esp, 4
mov dword [esp], eax
call esi
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov edx, dword [0x44d3ac]
and ax, 0xfff
sub esp, 4
or ah, 0x50
mov word [ebx + 0x6e], ax
movzx eax, byte [ebx + 0x70]
and eax, 0xffffffbf
or eax, 0xffffff80
mov byte [ebx + 0x70], al
lea eax, [ebx + 0x78]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x10
mov dword [esp], eax
call fcn.00431998
test edi, 1
mov edx, 0x40
jne 0x407829
test edi, 2
jne 0x407844
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0x4075a7
xor eax, eax
add edi, 2
mov word [edi - 2], ax
and edx, 1
je 0x4075af
mov byte [edi], 0
mov eax, dword [0x44d3a8]
test byte [0x44d3a2], 4
mov dword [ebx + 0xc8], 0
mov byte [ebx + 0xcc], 0
mov word [ebx + 0xce], ax
mov byte [ebx + 0xcd], 0
je 0x4075e6
mov dword [ebx + 0xe0], 8
mov eax, dword [0x44d33c]
mov esi, 0x1c
mov ecx, 0x20
mov word [ebx + 0x15c], si
mov edi, 0x1c
xor esi, esi
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0x150], eax
xor eax, eax
mov word [ebx + 0x164], ax
xor eax, eax
mov word [ebx + 0x166], ax
mov eax, dword [0x44d344]
mov dword [ebx + 0xec], 0
mov byte [ebx + 0xfc], 2
mov byte [ebx + 0xfd], 1
test eax, eax
mov word [ebx + 0xfe], cx
mov dword [ebx + 0x100], 0
mov dword [ebx + 0x104], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x154], 0
mov dword [ebx + 0x158], 0
mov word [ebx + 0x15e], di
mov dword [ebx + 0x160], 2
mov dword [ebx + 0x168], 0
mov dword [ebx + 0x16c], 0
mov dword [ebx + 0x170], 0
mov byte [ebx + 0x174], 0
mov dword [ebx + 0x178], 0
mov dword [ebx + 0x17c], 0
jne 0x40776f
jmp 0x407821
lea eax, [edi + 1]
mov dword [esp + 0xc], eax
mov eax, dword [0x44d388]
imul eax, dword [0x44d348]
mov dword [esp + 8], eax
mov eax, dword [0x44d328]
mov dword [esp + 4], eax
mov eax, dword [0x44d360]
mov dword [esp], eax
call fcn.0040cdb0
mov edx, dword [0x44d348]
add edx, dword [0x44d3a8]
add edx, 1
add edi, edx
mov edx, dword [0x44d328]
mov eax, esi
shl eax, 5
add esi, 1
lea ecx, [edi + 1]
mov dword [edx + eax], edi
mov edx, dword [0x44d328]
add edi, 2
mov dword [edx + eax + 4], ecx
mov edx, dword [0x44d328]
mov dword [edx + eax + 8], edi
mov edx, dword [ebx + 0x20]
add eax, dword [0x44d328]
mov word [eax + 0xc], dx
mov edx, dword [ebx + 0x28]
mov word [eax + 0xe], dx
xor edx, edx
mov word [eax + 0x10], dx
cmp dword [0x44d344], esi
jbe 0x407821
mov dword [esp], esi
mov edi, dword [0x44d38c]
call fcn.00406d10
xor edx, edx
imul edi, esi
add edi, dword [0x44d334]
test eax, eax
je 0x40771c
test esi, esi
je 0x4076e0
mov eax, dword [0x44d388]
lea edx, [esi*4]
mov ecx, edx
add ecx, dword [0x44d324]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x8c], ecx
call fcn.004318f0
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], eax
mov eax, dword [0x44d324]
mov ecx, dword [0x44d388]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004318c0
mov edx, dword [ebp - 0x90]
add edx, dword [0x44d324]
mov eax, dword [edx]
mov word [eax + 0x5a], si
mov eax, dword [0x44d388]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [edx]
mov dword [esp + 4], eax
mov eax, dword [0x44d360]
mov dword [esp], eax
call fcn.0040cdb0
jmp 0x4076e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebx + 0x89]
mov dl, 0x3f
test edi, 2
mov byte [ebx + 0x88], 0
je 0x407590
xor eax, eax
add edi, 2
mov word [edi - 2], ax
sub edx, 2
jmp 0x407590
mov dword [ebx + 0x18], 0xffffffff
mov edx, 0xffffffff
jmp 0x4073ba
mov eax, dword [0x44f3fc]
mov dword [esp + 4], 0x4425a0
add eax, 0x40
mov dword [esp], eax
call fcn.00406c80
call fcn.00431980
lea esi, [esi]
lea edi, [edi]