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

Disassembly:
push 0xffffffffffffffff
push 0x41d328
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x431520]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431520]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa4]
mov ebp, dword [esp + 0xac]
mov ebx, dword [esp + 0xbc]
movzx edx, dx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xb8]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], eax
call fcn.004019c0
mov edi, eax
mov dword [esp + 0x9c], 0
call fcn.00404fb0
mov edi, eax
mov dword [esp + 0x9c], 0xffffffff
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], edi
test eax, eax
je 0x403215
mov esi, eax
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], esi
call fcn.00406d86
mov eax, dword [esi + 4]
test eax, eax
je 0x4031f3
cmp eax, 0xffffffff
jae 0x4031f3
dec eax
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x2c]
not esi
call fcn.00406dae
and esi, dword [esp + 0x38]
je 0x403215
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea esi, [esp + 0x70]
mov ecx, edi
call fcn.00404460
mov esi, 1
mov dword [esp + 0x9c], esi
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
movzx eax, ax
xor edi, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
mov ecx, dword [esp + 0x28]
add ecx, 8
push ecx
lea edx, [esp + 0x30]
push edx
push esi
lea eax, [esp + 0x24]
mov byte [esp + 0xa8], 2
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x2c], 0x30
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
call fcn.00406fd3
mov al, byte [ebp]
add esp, 0x14
cmp al, 0x2b
je 0x403293
mov dword [esp + 0x2c], edi
cmp al, 0x2d
jne 0x403297
mov dword [esp + 0x2c], esi
call fcn.00407b6d
mov edx, dword [eax]
mov al, byte [edx]
push ebx
push 0x65
push ebp
mov byte [esp + 0x2c], al
mov word [esp + 0x2d], 0x65
call fcn.00407ac0
movsx ecx, byte [esp + 0x2c]
add esp, 0xc
push ebx
push ecx
push ebp
mov edi, eax
call fcn.00407ac0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x24], esi
test esi, esi
jne 0x4032d7
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x70]
mov ecx, eax
cmp edx, 0x10
jae 0x4032ed
lea ecx, [esp + 0x70]
cmp byte [ecx], 0x7f
je 0x403423
cmp edx, 0x10
jae 0x4032ff
lea eax, [esp + 0x70]
cmp byte [eax], 0
jle 0x403423
push ebx
mov eax, ebp
lea ecx, [esp + 0x58]
call fcn.00402b40
test edi, edi
jne 0x40332a
mov edx, dword [esp + 0x14]
push 0x30
push edx
lea ecx, [esp + 0x5c]
call fcn.00403ea0
jmp 0x403358
test esi, esi
jne 0x403342
mov eax, dword [esp + 0x1c]
push 0x30
push eax
lea ecx, [esp + 0x5c]
call fcn.00403ea0
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x14]
push 0x30
push ecx
sub edi, ebp
lea esi, [esp + 0x5c]
call fcn.00402d40
mov esi, dword [esp + 0x24]
push 0x30
test esi, esi
jne 0x40336e
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x5c]
call fcn.00403ea0
jmp 0x403399
mov eax, dword [esp + 0x40]
mov ebx, esi
sub ebx, ebp
push eax
lea edi, [ebx + 1]
lea esi, [esp + 0x5c]
call fcn.00402d40
mov ecx, dword [esp + 0x1c]
push 0x30
push ecx
mov edi, ebx
call fcn.00402d40
mov dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x70]
mov eax, 0x10
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x84], eax
jae 0x4033b7
lea ebx, [esp + 0x70]
cmp dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
jae 0x4033c5
lea eax, [esp + 0x54]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00407bb0
mov edi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x403408
test al, al
jle 0x403408
mov ecx, edi
sub ecx, dword [esp + 0x2c]
movsx eax, al
cmp eax, ecx
jae 0x403408
push 0
sub edi, eax
push 1
lea esi, [esp + 0x5c]
call fcn.00402d40
cmp byte [ebx + 1], 0
jle 0x403402
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x4033db
cmp dword [esp + 0x68], 0x10
mov ebp, dword [esp + 0x54]
jae 0x403417
lea ebp, [esp + 0x54]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 0x20]
lea eax, [ebx + edx]
add eax, dword [esp + 0x3c]
add eax, dword [esp + 0x1c]
cmp dword [edi + 0x24], 0
jl 0x403453
jg 0x403445
test ecx, ecx
je 0x403453
cmp ecx, eax
jbe 0x403453
sub ecx, eax
mov esi, ecx
mov dword [esp + 0x24], esi
jmp 0x40345f
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x4034f7
cmp eax, 0x100
jne 0x4034b9
cmp dword [esp + 0x2c], 0
jbe 0x4034b9
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
push 1
push eax
mov eax, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov eax, ebp
call fcn.004042a0
mov ecx, dword [eax]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
add esp, 0x14
inc ebp
mov dword [esp + 0xc4], edx
dec ebx
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
push eax
push ecx
lea edx, [esp + 0x34]
mov eax, esi
mov esi, dword [esp + 0x54]
push edx
call fcn.00403bb0
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], 0
mov dword [esp + 0xd0], edx
add esp, 0xc
movsx eax, byte [esp + 0x20]
push ebx
push eax
push ebp
call fcn.00407ac0
add esp, 0xc
test eax, eax
je 0x4035fc
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
push ecx
sub eax, ebp
push edx
mov edx, dword [esp + 0x30]
lea edi, [eax + 1]
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
push ecx
lea eax, [edi - 1]
push edx
mov ecx, ebp
call fcn.00404380
mov ecx, dword [eax]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd8], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0x14
push ecx
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
call fcn.00403bb0
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xd0], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 0xc
call edx
mov ecx, dword [esp + 0xc0]
movzx esi, ax
mov eax, dword [esp + 0xc4]
push eax
push ecx
lea edx, [esp + 0x4c]
push edx
mov eax, 1
call fcn.00403bb0
mov ecx, dword [eax]
mov esi, dword [esp + 0x40]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd0], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0xc
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x48]
call fcn.00403bb0
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov edx, dword [eax + 4]
add ebp, edi
add esp, 0xc
sub ebx, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc4], edx
push ebx
push 0x65
push ebp
call fcn.00407ac0
add esp, 0xc
test eax, eax
je 0x4036d7
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x38]
sub eax, ebp
lea edi, [eax + 1]
mov eax, dword [esp + 0xc4]
push eax
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x50]
push ecx
lea eax, [edi - 1]
push edx
mov ecx, ebp
call fcn.00404380
mov ecx, dword [eax]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xd8], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
add esp, 0x14
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x20]
call fcn.00403bb0
mov ecx, dword [eax]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax + 4]
add esp, 0xc
test byte [ecx + 0x14], 4
mov dword [esp + 0xc4], edx
mov dword [esp + 0x14], 0
mov ecx, 0x42d2f8
jne 0x40369f
mov ecx, 0x42d2fc
mov edx, dword [eax + 4]
mov eax, dword [eax]
push 1
push edx
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x50]
push edx
push eax
mov eax, ecx
call fcn.004042a0
mov ecx, dword [eax]
mov dword [esp + 0xd4], ecx
mov edx, dword [eax + 4]
add ebp, edi
add esp, 0x14
sub ebx, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc4], edx
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
mov eax, ebx
mov ecx, ebp
call fcn.00404380
mov edx, dword [eax]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xd4], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xd8], ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 0x14
push edx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
call fcn.00403bb0
mov ecx, dword [eax]
mov esi, dword [esp + 0x58]
add esp, 0xc
mov dword [esp + 0xc0], ecx
mov eax, dword [eax + 4]
push eax
xor ebx, ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov edi, dword [esp + 0xac]
push ecx
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0x2c]
push edi
call fcn.00403bb0
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x68], esi
jb 0x40377e
mov edx, dword [esp + 0x54]
push edx
call fcn.00407b9e
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x84], esi
jb 0x4037a4
mov eax, dword [esp + 0x70]
push eax
call fcn.00407b9e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004073c9
add esp, 0x8c
ret