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

Disassembly:
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
mov edi, dword [esp + 0x60]
push ebp
xor ebp, ebp
mov eax, dword [edi]
test edi, edi
mov esi, dword [eax + 0x1c4]
je 0x40745a
mov eax, dword [edi + 0xac]
test eax, eax
je 0x40745a
mov ecx, dword [eax + 0x2c]
jmp 0x40745c
xor ecx, ecx
mov eax, dword [esp + 0x70]
push 0
lea edx, [esp + 0x1c]
push eax
push edx
push ecx
push edi
call fcn.004aec90
lea ecx, [esp + 0x2c]
add esp, 0x14
push 0
push 0x4b0110
push 0
push ecx
push edi
call fcn.004afda0
add esp, 0x14
cmp dword [esp + 0x74], 0
je 0x40749a
mov eax, dword [esp + 0x74]
mov dword [eax], 0
cmp dword [esp + 0x78], 0
je 0x4074ab
mov eax, dword [esp + 0x78]
mov dword [eax], 0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
push 0x3a
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.004aed20
add esp, 0xc
test ax, ax
jne 0x40787f
lea eax, [esp + 0x18]
lea ecx, [esp + 0x40]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
push 0
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
push 0x4b0140
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
lea edx, [esp + 0x48]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
call fcn.004afda0
add esp, 0x14
test edi, edi
je 0x40752d
mov eax, dword [edi + 0xac]
test eax, eax
je 0x40752d
mov ecx, dword [eax + 0x2c]
jmp 0x40752f
xor ecx, ecx
lea eax, [esp + 0x40]
push 0x101
lea edx, [esp + 0x1c]
push esi
push eax
push edx
push ecx
push edi
call fcn.004af030
add esp, 0x18
test edi, edi
je 0x40755c
mov eax, dword [edi + 0xac]
test eax, eax
je 0x40755c
mov eax, dword [eax + 0x2c]
jmp 0x40755e
xor eax, eax
push esi
push eax
call fcn.004addd0
mov dword [esp + 0x34], eax
add esp, 8
test byte [esp + 0x3c], 1
je 0x40758e
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
xor eax, eax
mov al, byte [edx + ecx]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4075e5
inc dword [esp + 0x34]
jmp 0x4075e5
test byte [esp + 0x3c], 2
je 0x4075bd
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp word [eax + ecx], 0
je 0x4075b3
add dword [esp + 0x34], 2
mov dword [esp + 0x14], 2
jmp 0x4075e5
mov dword [esp + 0x14], 0
jmp 0x4075e5
test edi, edi
je 0x4075d0
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4075d0
mov ecx, dword [eax + 0x2c]
jmp 0x4075d2
xor ecx, ecx
lea eax, [esp + 0x14]
lea edx, [esp + 0x30]
push eax
push edx
push ecx
call fcn.004ae200
add esp, 0xc
lea eax, [esp + 0x30]
push 0
push 0x4b0110
push 0
push eax
push edi
call fcn.004afda0
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x44]
add esp, 0x14
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
push 0
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
push 0x4b0140
mov eax, dword [eax + 0xc]
push 0
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x4c]
push ecx
push edi
call fcn.004afda0
mov dword [esp + 0x28], eax
add esp, 0x14
test edi, edi
je 0x40764c
mov eax, dword [edi + 0xac]
test eax, eax
je 0x40764c
mov ecx, dword [eax + 0x2c]
jmp 0x40764e
xor ecx, ecx
push 0x101
lea edx, [esi + 0x101]
lea eax, [esp + 0x44]
push edx
lea edx, [esp + 0x38]
push eax
push edx
push ecx
push edi
call fcn.004af030
add esp, 0x18
test edi, edi
je 0x407681
mov eax, dword [edi + 0xac]
test eax, eax
je 0x407681
mov eax, dword [eax + 0x2c]
jmp 0x407683
xor eax, eax
lea edx, [esi + 0x101]
push edx
push eax
call fcn.004addd0
mov dword [esp + 0x30], eax
add esp, 8
test byte [esp + 0x24], 1
je 0x4076b1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
xor eax, eax
mov al, byte [ecx + edx]
mov dword [esp + 0x14], eax
jmp 0x4076fe
test byte [esp + 0x24], 2
je 0x4076d6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp word [eax + ecx], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 2
mov dword [esp + 0x14], eax
jmp 0x4076fe
test edi, edi
je 0x4076e9
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4076e9
mov ecx, dword [eax + 0x2c]
jmp 0x4076eb
xor ecx, ecx
lea eax, [esp + 0x14]
lea edx, [esp + 0x18]
push eax
push edx
push ecx
call fcn.004ae290
add esp, 0xc
cmp dword [esp + 0x14], 0x2e
jne 0x40777a
cmp dword [esp + 0x2c], 1
jne 0x40777a
mov eax, dword [esp + 0x80]
test eax, eax
je 0x40773a
mov ebx, eax
push 0x3e
add esi, 0x101
mov eax, dword [edi + 0x44]
push esi
push eax
push edi
call fcn.004aa900
add esp, 0x10
mov ebp, eax
test ebp, ebp
jne 0x40774d
jmp 0x4079b9
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x407745
mov byte [eax], 1
test ebp, ebp
je 0x4079e1
test ebx, ebx
je 0x40775e
cmp dword [esp + 0x74], 0
je 0x40775e
mov eax, dword [esp + 0x74]
mov dword [eax], ebx
cmp dword [esp + 0x78], 0
je 0x4079d3
mov eax, dword [esp + 0x78]
mov dword [eax], ebp
pop ebp
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x50
ret
cmp dword [esp + 0x2c], 0
jne 0x4077a2
push 0x3e
add esi, 0x101
push esi
mov ecx, dword [edi + 0x44]
push ecx
push edi
call fcn.004aa900
add esp, 0x10
mov ebp, eax
test ebp, ebp
jne 0x40774d
jmp 0x4079b9
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x30], eax
jne 0x4077ca
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x34], eax
jb 0x4077c0
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x1c]
jmp 0x4077cf
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x34]
jmp 0x4077cf
mov eax, 0xffffffff
test eax, eax
je 0x407745
cmp dword [esp + 0x28], 2
jl 0x407745
mov ax, word [esp + 0x68]
dec ax
mov word [esp + 0x12], ax
js 0x407862
mov eax, dword [esp + 0x6c]
movsx ecx, word [esp + 0x12]
mov ebx, dword [eax + ecx*4]
cmp ebx, 0xfffffff0
jl 0x407806
cmp ebx, 0xffffffff
jle 0x407839
xor eax, eax
mov ax, word [ebx + 0x2c]
cmp eax, dword [esp + 0x2c]
jne 0x407839
mov ecx, 0
test edi, edi
je 0x407821
mov ecx, dword [edi + 0xac]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0x28]
push eax
push edx
push esi
push ecx
call fcn.004ac3a0
add esp, 0x10
test ax, ax
je 0x407842
dec word [esp + 0x12]
jns 0x4077f0
jmp 0x407862
push 0x3e
add esi, 0x101
push esi
mov ecx, dword [edi + 0x44]
push ecx
push edi
call fcn.004aa900
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x4079b9
cmp word [esp + 0x12], 0
jge 0x407745
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x407745
jmp 0x407742
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x18]
lea ecx, [esp + 0x40]
mov eax, dword [edx]
test byte [esp + 0x24], 1
mov dword [ecx], eax
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
je 0x4078b8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
xor eax, eax
mov al, byte [ecx + edx]
mov dword [esp + 0x14], eax
jmp 0x407905
test byte [esp + 0x24], 2
je 0x4078dd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp word [eax + ecx], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 2
mov dword [esp + 0x14], eax
jmp 0x407905
test edi, edi
je 0x4078f0
mov eax, dword [edi + 0xac]
test eax, eax
je 0x4078f0
mov ecx, dword [eax + 0x2c]
jmp 0x4078f2
xor ecx, ecx
lea eax, [esp + 0x14]
lea edx, [esp + 0x18]
push eax
push edx
push ecx
call fcn.004ae290
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x40796a
xor ebp, ebp
lea eax, [esp + 0x40]
push ebp
push 0x4b0140
push ebp
push eax
push edi
call fcn.004afda0
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
add esp, 0x14
mov edx, dword [eax]
cmp dword [esp + 0x14], ebp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
je 0x40796a
lea eax, [esp + 0x40]
push ebp
push 0x4b0110
push ebp
push eax
push edi
call fcn.004afda0
mov dword [esp + 0x28], eax
add esp, 0x14
cmp dword [esp + 0x14], ebp
jne 0x40790e
test edi, edi
je 0x40797d
mov eax, dword [edi + 0xac]
test eax, eax
je 0x40797d
mov ecx, dword [eax + 0x2c]
jmp 0x40797f
xor ecx, ecx
add esi, 0x101
push 0x101
lea eax, [esp + 0x54]
push esi
lea edx, [esp + 0x20]
push eax
push edx
push ecx
push edi
call fcn.004af030
add esp, 0x18
mov edx, dword [edi + 0x44]
push 0x3e
push esi
push edx
push edi
call fcn.004aa900
add esp, 0x10
mov ebp, eax
test ebp, ebp
jne 0x40774d
push ebp
mov eax, dword [edi + 0x44]
push eax
push edi
call fcn.004aa460
mov ax, 0xfffe
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x50
ret
push ebp
mov eax, dword [edi + 0x44]
push eax
push edi
call fcn.004aa460
add esp, 0xc
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x50
ret