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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [0x44647c]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
mov dword [esp + 0x78], eax
push edi
lea eax, [esp + 0x40]
push eax
call fcn.00403840
xor edi, edi
push eax
mov dword [esp + 0x90], edi
call fcn.00405f20
mov esi, eax
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x8c], 0xffffffff
mov ebx, 1
je 0x40752c
mov ecx, dword [eax + 4]
mov edx, eax
add eax, 4
cmp ecx, edi
jbe 0x40751b
cmp ecx, 0xffffffff
jae 0x40751b
dec ecx
mov dword [eax], ecx
xor ecx, ecx
cmp dword [eax], edi
setne cl
dec ecx
and ecx, edx
je 0x40752c
mov edx, dword [ecx]
push ebx
call dword [edx]
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.00406860
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x8c], ebx
call dword [edx + 8]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xa0], 2
mov byte [esp + 0x20], 0x30
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], edi
call fcn.004252c2
mov esi, dword [ebp + 0x20]
mov al, byte [esi]
add esp, 0x14
cmp al, 0x2b
je 0x40759e
cmp al, 0x2d
je 0x40759e
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.00427b1d
mov eax, dword [eax]
mov cl, byte [eax]
mov eax, dword [esp + 0x78]
cmp eax, 0x10
mov edx, dword [esp + 0x64]
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], 0x65
mov byte [esp + 0x22], 0
mov ecx, edx
jae 0x4075cc
lea ecx, [esp + 0x64]
cmp byte [ecx], 0x7f
je 0x407700
cmp eax, 0x10
mov eax, edx
jae 0x4075e0
lea eax, [esp + 0x64]
cmp byte [eax], 0
jle 0x407700
mov edi, dword [ebp + 0x30]
push edi
push esi
lea ecx, [esp + 0x4c]
call fcn.00407be0
push edi
push 0x65
push esi
call fcn.00427b80
add esp, 0xc
test eax, eax
push 0x30
jne 0x407618
mov edx, dword [ebp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00404e20
jmp 0x407628
mov ecx, dword [ebp + 0x2c]
push ecx
sub eax, esi
push eax
lea ecx, [esp + 0x50]
call fcn.00407ac0
movsx edx, byte [esp + 0x20]
push edi
push edx
push esi
call fcn.00427b80
add esp, 0xc
test eax, eax
push 0x30
jne 0x40764d
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [esp + 0x4c]
call fcn.00404e20
jmp 0x407672
mov ecx, dword [ebp + 0x28]
mov edi, eax
sub edi, esi
push ecx
lea edx, [edi + 1]
push edx
lea ecx, [esp + 0x50]
call fcn.00407ac0
mov eax, dword [ebp + 0x24]
push 0x30
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.00407ac0
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x64]
mov eax, 0x10
cmp ecx, eax
jae 0x407687
lea edi, [esp + 0x64]
cmp dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
jae 0x407695
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.00427c90
mov esi, eax
mov al, byte [edi]
add esp, 8
cmp al, 0x7f
je 0x4076dd
jmp 0x4076b0
test al, al
jle 0x4076dd
movsx eax, al
mov edx, esi
sub edx, ebx
cmp eax, edx
jae 0x4076dd
push 0x2c
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x50]
call fcn.00407ac0
mov al, byte [edi + 1]
test al, al
jle 0x4076d7
inc edi
mov al, byte [edi]
cmp al, 0x7f
jne 0x4076b0
cmp dword [esp + 0x5c], 0x10
mov esi, dword [esp + 0x48]
jae 0x4076ec
lea esi, [esp + 0x48]
xor eax, eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x58]
mov dword [ebp + 0x30], eax
xor edi, edi
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x30]
lea eax, [ecx + edx]
add eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 0x18]
add eax, ebx
cmp ecx, edi
jle 0x407725
cmp ecx, eax
jbe 0x407725
sub ecx, eax
mov edi, ecx
jmp 0x407727
xor edi, edi
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x10]
mov ebx, dword [ebp + 0x1c]
and eax, 0x1c0
cmp eax, 0x40
mov dword [esp + 0x24], edi
je 0x40781f
cmp eax, 0x100
je 0x407782
test edi, edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jbe 0x40776d
jmp 0x407760
push ebx
lea ecx, [esp + 0x1c]
call fcn.00405e60
dec edi
jne 0x407760
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
jmp 0x407825
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [ebp + 0x14]
jbe 0x4077e8
mov edx, dword [ebp + 0x10]
mov cl, byte [esi]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
mov dword [esp + 0x14], edx
lea edx, [esp + 0x28]
push edx
push 1
lea eax, [esp + 0x18]
mov byte [esp + 0x18], cl
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004252c2
mov edx, dword [esp + 0x2c]
add esp, 0x14
push edx
lea ecx, [esp + 0x14]
call fcn.00405e60
mov edx, dword [ebp + 0x30]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc esi
dec edx
mov dword [ebp + 0x30], edx
jmp 0x4077eb
mov ecx, dword [ebp + 0x10]
test edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jbe 0x40780d
jmp 0x407800
push ebx
lea ecx, [esp + 0x14]
call fcn.00405e60
dec edi
jne 0x407800
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], 0
jmp 0x407825
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x30]
movsx ecx, byte [esp + 0x20]
push eax
push ecx
push esi
call fcn.00427b80
add esp, 0xc
test eax, eax
je 0x4078f3
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 8]
sub eax, esi
inc eax
push edx
mov dword [esp + 0x1c], eax
dec eax
push eax
push esi
push ebx
push edi
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.00406770
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
add esp, 0x1c
test eax, eax
mov dword [esp + 0x10], edx
jbe 0x40788d
mov edi, eax
lea esp, [esp]
push ebx
lea ecx, [esp + 0x14]
call fcn.00405e60
dec edi
jne 0x407880
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], edx
push eax
call fcn.00405e60
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x28]
test eax, eax
mov dword [esp + 0x14], ecx
jbe 0x4078dd
mov edi, eax
lea esp, [esp]
push ebx
lea ecx, [esp + 0x14]
call fcn.00405e60
dec edi
jne 0x4078d0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x30]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add esi, eax
sub ecx, eax
mov dword [ebp + 0x30], ecx
mov edx, dword [ebp + 0x30]
push edx
push 0x65
push esi
call fcn.00427b80
add esp, 0xc
test eax, eax
je 0x4079d1
mov ecx, dword [esp + 0x3c]
sub eax, esi
inc eax
push ecx
mov dword [esp + 0x44], eax
dec eax
push eax
mov eax, dword [ebp + 8]
push esi
push ebx
push edi
lea edx, [esp + 0x3c]
push edx
push eax
call fcn.00406770
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x2c]
add esp, 0x1c
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jbe 0x407953
mov ebx, dword [esp + 0x30]
mov edi, eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00405e60
dec edi
jne 0x407946
mov eax, dword [ebp + 0x18]
test byte [eax + 0x10], 4
mov dword [ebp + 0x2c], 0
mov eax, 0x43692c
jne 0x40796d
mov eax, 0x436928
mov al, byte [eax]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov byte [esp + 0xc], al
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
add eax, 8
push eax
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x34], edx
push 1
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004252c2
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push ecx
lea ecx, [esp + 0x2c]
call fcn.00405e60
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x30]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
add esi, eax
sub ecx, eax
mov dword [ebp + 0x30], ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x30]
push edx
mov edx, dword [ebp + 8]
push eax
push esi
push ebx
push edi
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00406770
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0x2c]
add esp, 0x1c
test eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jbe 0x407a1d
mov edi, dword [esp + 0x30]
mov esi, eax
jmp 0x407a10
push edi
lea ecx, [esp + 0x2c]
call fcn.00405e60
dec esi
jne 0x407a10
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
xor ebx, ebx
mov dword [eax + 0x18], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jbe 0x407a4f
mov edi, dword [ebp + 0x1c]
mov esi, eax
push edi
lea ecx, [esp + 0x14]
call fcn.00405e60
dec esi
jne 0x407a42
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x5c]
mov edi, 0x10
cmp eax, edi
mov dword [esi + 4], ecx
jb 0x407a79
mov edx, dword [esp + 0x48]
push edx
call fcn.00426a53
add esp, 4
cmp dword [esp + 0x78], edi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], 0
jb 0x407a9d
mov eax, dword [esp + 0x64]
push eax
call fcn.00426a53
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x7c]
mov eax, esi
call fcn.0042714d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret