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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f9df
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x482738]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x482738]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4090a2
mov al, byte [edi]
cmp al, 0x2b
je 0x40909d
cmp al, 0x2d
jne 0x4090a2
xor ebx, ebx
inc ebx
jmp 0x4090a4
xor ebx, ebx
mov ecx, esi
call fcn.00402521
mov ecx, 0x3000
and eax, ecx
cmp eax, ecx
je 0x4090bd
mov edx, 0x470e78
jmp 0x4090e1
lea eax, [ebx + 2]
mov edx, 0x470e7c
cmp eax, dword [esp + 0x14]
ja 0x4090e1
cmp byte [edi + ebx], 0x30
jne 0x4090e1
mov cl, byte [edi + ebx + 1]
cmp cl, 0x78
je 0x4090df
cmp cl, 0x58
jne 0x4090e1
mov ebx, eax
push edx
push edi
call fcn.00449310
mov dword [esp + 0x38], eax
push 0x2e
pop eax
mov word [esp + 0x20], ax
call fcn.00449179
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x20], al
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00449310
add esp, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0040254e
and dword [esp + 0x80], 0
push eax
call fcn.00409fb6
pop ecx
mov esi, eax
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00401910
push 0x30
mov ecx, esi
call fcn.00401aee
push 0
push dword [esp + 0x18]
movzx eax, ax
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], eax
call fcn.00408ae0
mov dword [esp + 0x80], 1
lea ecx, [esp + 0x40]
push 0
call fcn.00408ca6
push eax
mov eax, dword [esp + 0x18]
mov ecx, esi
add eax, edi
push eax
push edi
call fcn.00401af7
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
call fcn.0040254e
mov byte [esp + 0x80], 2
push eax
call fcn.0040a6b2
mov esi, eax
pop ecx
mov dword [esp + 0x28], esi
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x20]
call fcn.00401910
lea eax, [esp + 0x58]
mov ecx, esi
push eax
call fcn.00408ee7
mov byte [esp + 0x80], 3
mov ecx, esi
call fcn.00408ee2
mov ecx, dword [esp + 0x30]
movzx eax, ax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jne 0x409201
mov eax, dword [ebp + 0x24]
push dword [esp + 0x24]
push eax
lea edi, [ecx + eax]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00408c1b
jmp 0x409261
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0x24]
add eax, edi
push esi
push dword [ebp + 0x2c]
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.00408c1b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push esi
push dword [ebp + 0x28]
inc eax
push eax
call fcn.00408c1b
mov ecx, dword [esp + 0x28]
call fcn.00408edd
push dword [esp + 0x10]
lea ecx, [esp + 0x44]
mov si, ax
call fcn.00408ca6
push dword [esp + 0x24]
lea ecx, [esp + 0x44]
push edi
push dword [esp + 0x18]
mov word [eax], si
call fcn.00408c1b
mov edi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x5c]
call fcn.0040893a
mov esi, eax
jmp 0x40929a
test al, al
jle 0x4092a0
movsx ecx, al
mov eax, edi
sub eax, ebx
cmp ecx, eax
jae 0x4092a0
push dword [esp + 0x34]
sub edi, ecx
lea ecx, [esp + 0x44]
push 1
push edi
call fcn.00408c1b
lea eax, [esi + 1]
cmp byte [eax], 0
cmovg esi, eax
mov al, byte [esi]
cmp al, 0x7f
jne 0x409270
lea ecx, [esp + 0x40]
call fcn.0040773b
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x34], edi
call fcn.0040252c
mov esi, eax
test edx, edx
jl 0x4092cc
jg 0x4092c4
test esi, esi
je 0x4092cc
cmp esi, edi
jbe 0x4092cc
sub esi, edi
jmp 0x4092ce
xor esi, esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
call fcn.00402521
and eax, 0x1c0
cmp eax, 0x40
je 0x40937d
cmp eax, 0x100
je 0x409331
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.0040982b
and dword [esp + 0x28], 0
lea ecx, [esp + 0x58]
add esp, 0x18
mov esi, eax
mov eax, dword [esi]
push ebx
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 4]
push 0
mov dword [ebp + 0x14], eax
call fcn.00408ca6
push eax
push dword [esi + 4]
push dword [esi]
jmp 0x409393
push ebx
push 0
lea ecx, [esp + 0x48]
call fcn.00408ca6
mov edi, dword [ebp + 8]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x34]
push dword [ebp + 0x10]
push eax
push edi
call fcn.004097ed
mov ecx, eax
push esi
push dword [ebp + 0x1c]
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x48]
push dword [ecx + 4]
push dword [ecx]
push eax
push edi
call fcn.0040982b
add esp, 0x30
and dword [esp + 0x10], 0
jmp 0x4093a1
push ebx
push 0
lea ecx, [esp + 0x48]
call fcn.00408ca6
mov edi, dword [ebp + 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [esp + 0x38]
push eax
push edi
call fcn.004097ed
add esp, 0x18
mov esi, dword [eax]
lea ecx, [esp + 0x40]
mov dword [ebp + 0x10], esi
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x34]
sub eax, ebx
mov dword [ebp + 0x14], edi
push eax
push ebx
call fcn.00408ca6
mov ebx, dword [ebp + 8]
push eax
push edi
push esi
lea eax, [esp + 0x44]
push eax
push ebx
call fcn.004097ed
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov edi, dword [eax]
push 0
mov dword [ebp + 0x10], edi
mov esi, dword [eax + 4]
push 0
mov dword [ebp + 0x14], esi
call fcn.00402533
push dword [esp + 0x10]
push dword [ebp + 0x1c]
push esi
mov esi, dword [esp + 0x48]
push edi
push esi
push ebx
call fcn.0040982b
add esp, 0x18
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x58]
call fcn.004063e2
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.004068a1
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00448892
mov esp, ebp
pop ebp
ret