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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov esi, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 8], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov eax, dword [ebp + 0x20]
mov ebx, 6
test eax, eax
js 0x4059ff
mov ebx, eax
mov eax, esi
or eax, edi
je 0x405a0f
mov ecx, ebx
and ecx, 0x400
jmp 0x405a22
mov eax, ebx
and eax, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x405a28
test eax, eax
jne 0x405a28
mov eax, ecx
mov cx, 8
test ebx, 0x10000
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edx
jne 0x405a41
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebx
and ebx, 0xf
sete cl
test eax, eax
setne dl
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x48]
mov dword [esp + 0xc], edi
test edi, edi
je 0x405b3f
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 2
jne 0x405b3f
cmp dword [ebp + 0x14], 0
sete ch
cmp dword [ebp + 0x10], 0
setne dh
cmp dword [ebp + 0xc], 0
je 0x405b3f
or dh, ch
je 0x405b3f
cmp word [ebp + 0x1c], 0
setne ch
cmp dword [ebp + 0x18], 0
sete dh
test dh, ch
jne 0x405b3f
cmp ebx, 0xb
jae 0x405b3f
mov edi, dword [esp + 0xc]
mov edi, dword [edi + 0x34]
mov dword [esp + 4], edi
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x10], edi
cmp dword [esp + 4], 0
je 0x405ae6
cmp dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x24]
jne 0x405b17
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x405b49
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x405b00
mov dword [esp + 4], 0
cmp dword [esp + 0x10], 0xffff
jne 0x405b17
mov edi, dword [esp + 0xc]
mov dword [edi + 0x34], 1
mov edi, dword [esp + 0x24]
mov dword [esp + 4], 1
or cl, dl
movzx ecx, cl
test eax, eax
je 0x405b34
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0x2f
jne 0x405b53
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405b49
or esi, edi
mov edi, dword [ebp + 0xc]
je 0x405bf7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 8]
push edi
call fcn.00408e20
add esp, 4
cmp eax, 0x10000
jb 0x405b81
mov dword [ebx + 0x1c], 0x19
jmp 0x405b49
mov dword [esp + 0x3c], eax
xor edx, edx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
or ecx, eax
mov ecx, 0
je 0x405bab
mov ecx, 0xfffffffe
add ecx, eax
inc ecx
mov edi, dword [ebp + 8]
mov ebx, dword [edi]
and ebx, ecx
sub eax, ebx
and eax, ecx
mov ecx, eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
movzx ebx, word [ebp + 0x1c]
xor eax, eax
mov edi, ebx
add edi, dword [esp + 0x3c]
setb al
mov dword [esp + 0x94], ecx
add edi, ecx
adc eax, 0
mov ecx, edi
mov dword [esp + 0x1c], edi
add ecx, 0x4a
adc eax, 0
mov edi, 0xfffffffe
cmp edi, ecx
sbb edx, eax
jae 0x405c56
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405b49
cmp byte [edi], 0x2f
je 0x405b28
mov dword [esp + 0x10], ecx
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.004036f0
add esp, 0xc
mov dword [esp + 0x98], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov eax, 0
cmp esi, 4
jb 0x405c3c
mov eax, ebx
mov dword [esp + 0x20], eax
mov eax, 1
mov ecx, dword [esp + 0x10]
jb 0x405c4d
mov eax, ecx
mov dword [esp + 0x10], eax
jmp 0x405b65
mov dword [esp + 0xa8], ebx
mov edx, dword [esp + 4]
test edx, edx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jne 0x405cf2
xor edx, edx
mov ecx, dword [esp + 0x3c]
mov ebx, ecx
add ebx, dword [esp + 0x54]
setb dl
mov eax, dword [ebp + 8]
add ebx, dword [eax]
adc edx, dword [eax + 4]
add ebx, 0x1e
adc edx, 0
lea eax, [ebx + ebx]
and eax, 0x5c
xor ebx, 0x2e
add ebx, ecx
adc edx, 0
add ebx, eax
adc edx, 0
mov edi, ebx
mov eax, dword [esp + 0xa8]
and edi, eax
add edi, edi
xor ebx, eax
mov ecx, dword [ebp + 0x38]
add ecx, dword [ebp + 0x40]
mov eax, 0
adc eax, 0xffffffff
add ecx, dword [esp + 0x94]
adc eax, 0
add ecx, ebx
mov ebx, dword [ebp + 8]
adc eax, edx
xor edx, edx
add ecx, edi
mov edi, dword [ebp + 0xc]
adc eax, 0
add ecx, 0x26
adc eax, 0
cmp eax, 0xffffffff
je 0x405cf2
mov eax, dword [esp + 0xc]
mov dword [eax + 0x34], 1
mov edx, 1
xor ecx, ecx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x405d1d
cmp byte [eax + edi - 1], 0x2f
mov edi, dword [ebp + 0x14]
jne 0x405d1d
test edi, edi
jne 0x405e10
mov ecx, 0x10
or esi, dword [esp + 0x24]
jne 0x405e10
mov dword [esp + 0x24], ecx
test edx, edx
je 0x405d2a
mov edx, 0x1c
mov eax, dword [esp + 0x1c]
add eax, edx
add eax, 0x2e
mov edi, dword [esp + 0xc]
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x405d87
mov esi, 1
test ecx, ecx
je 0x405d63
mov esi, ecx
jmp 0x405d63
mov ecx, esi
and ecx, 0xfffffffd
mov edx, esi
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, ecx
add esi, edx
cmp esi, eax
jb 0x405d4b
push esi
mov edi, dword [esp + 0x10]
push dword [edi + 0xc]
push dword [edi]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x405e04
mov dword [edi], eax
mov dword [edi + 8], esi
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
inc eax
cmp ecx, eax
jae 0x405dd9
mov esi, 1
test ecx, ecx
je 0x405db7
mov esi, ecx
jmp 0x405db7
mov ecx, esi
and ecx, 0xfffffffd
mov edx, esi
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, ecx
add esi, edx
cmp esi, eax
jb 0x405d9f
push esi
mov edi, dword [esp + 0x10]
push dword [edi + 0x1c]
push dword [edi + 0x10]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x405e04
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], esi
xor eax, eax
cmp dword [ebp + 0x14], 0
mov esi, dword [esp + 8]
je 0x405e1c
cmp dword [esp + 0x10], 0
mov edi, dword [esp + 0x14]
jne 0x405e20
push 0x4df40
push 1
push dword [ebx + 0x34]
call dword [ebx + 0x28]
add esp, 0xc
test eax, eax
jne 0x405e20
mov dword [ebx + 0x1c], 0x10
jmp 0x405b49
mov dword [ebx + 0x1c], 0x18
jmp 0x405b49
mov edi, dword [esp + 0x14]
mov dword [esp + 4], eax
mov ecx, ebx
mov edx, esi
mov ebx, esi
mov esi, dword [esp + 0x54]
push esi
push edi
call fcn.00406650
add esp, 8
test eax, eax
je 0x405f26
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, esi
adc ecx, 0
add ebx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
adc edi, 0
mov esi, edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov word [esp + 0x90], 0
cmp dword [esp + 0x10], 0
mov edi, ebx
je 0x405ec9
test dword [esp + 0x40], 0x400
jne 0x405ec9
xor ebx, ebx
mov dword [esp + 0x40], 0
jmp 0x405ed3
mov dx, 8
mov dword [esp + 0x40], edx
mov bl, 0x14
mov edx, dword [esp + 0xc]
cmp dword [edx + 0x34], 0
je 0x405f3b
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 8], edi
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], 0
mov ebx, 0xfffffffe
cmp ebx, edi
mov edx, 0
sbb edx, esi
jb 0x40602c
xor edx, edx
cmp ebx, eax
sbb edx, ecx
jb 0x40602c
mov esi, eax
xor eax, eax
mov ebx, dword [esp + 0x1c]
jmp 0x406083
push dword [esp + 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x405b49
cmp dword [esp + 0x4c], 0
jne 0x40643c
test esi, esi
jne 0x40643c
mov dword [esp + 8], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x74], 0x4034b50
mov byte [esp + 0x78], bl
mov ebx, dword [esp + 0x44]
movzx edx, bx
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], dh
mov edx, dword [esp + 0x40]
mov byte [esp + 0x7c], dl
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov dword [esp + 0x85], 0
mov dword [esp + 0x89], 0
mov byte [esp + 0x8d], 0
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x8e], bl
mov byte [esp + 0x8f], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x90], dl
mov byte [esp + 0x91], dh
lea edx, [esp + 0x74]
push 0x1e
push edx
push ecx
push eax
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40642c
mov esi, dword [esp + 8]
add esi, 0x1e
mov eax, edi
mov edi, dword [esp + 0x14]
adc edi, 0
push ebx
push dword [ebp + 0xc]
push edi
push esi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406191
add esi, ebx
mov dword [esp + 8], esi
adc edi, 0
mov dword [esp + 0xc], 0
mov esi, edi
xor edi, edi
jmp 0x40618c
xor edx, edx
cmp ebx, eax
mov eax, 0
sbb eax, ecx
jb 0x40603d
xor eax, eax
jmp 0x406041
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, esi
mov ebx, dword [esp + 0x1c]
jb 0x40605c
mov esi, 0
jmp 0x406060
lea esi, [esp + 0x48]
jae 0x406066
lea edx, [esp + 0x30]
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc], ecx
push eax
push esi
call fcn.004066f0
add esp, 8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x74], 0x4034b50
mov byte [esp + 0x78], bl
mov byte [esp + 0x79], 0
movzx edx, word [esp + 0x44]
mov byte [esp + 0x7a], dl
mov byte [esp + 0x7b], dh
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x1c], eax
add edx, eax
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x7c], bl
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov dword [esp + 0x85], 0
mov dword [esp + 0x89], 0
mov byte [esp + 0x8d], 0
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x8e], bl
mov byte [esp + 0x8f], bh
mov byte [esp + 0x90], dl
mov byte [esp + 0x91], dh
lea edx, [esp + 0x74]
push 0x1e
push edx
push ecx
push esi
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
mov esi, dword [esp + 8]
jne 0x40642c
add esi, 0x1e
mov eax, edi
mov edi, dword [esp + 0x14]
adc edi, 0
push ebx
push dword [ebp + 0xc]
push edi
push esi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406191
mov ecx, ebx
mov eax, esi
and eax, ebx
mov ebx, esi
mov esi, eax
shr esi, 0x1f
add eax, eax
xor ebx, ecx
add ebx, eax
adc esi, edi
cmp dword [esp + 0xc], 0
je 0x4061ad
lea eax, [esp + 0xb0]
mov edi, dword [esp + 0x1c]
push edi
push eax
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x406242
add ebx, edi
mov dword [esp + 8], ebx
adc esi, 0
mov eax, dword [ebp + 0x38]
jmp 0x4061c0
push dword [esp + 4]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405b49
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x38]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x4061ea
push eax
push dword [ebp + 0x34]
push esi
mov ebx, dword [esp + 0x14]
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x406242
add ebx, ecx
mov dword [esp + 8], ebx
adc esi, 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
test eax, eax
mov dword [esp + 0x1c], edi
je 0x406251
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov esi, dword [esp + 0x1c]
push esi
mov ebx, dword [esp + 0x14]
push ebx
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jne 0x40641f
mov eax, ecx
add ebx, ecx
mov dword [esp + 8], ebx
adc esi, 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
jmp 0x406319
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405b49
cmp dword [ebp + 0x14], 0
je 0x406316
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x20]
mov ecx, eax
cmp eax, 0xa
jl 0x406292
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43ca58]
test edx, edx
jne 0x4062b1
or eax, 0x80000
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x406760
mov esi, dword [esp + 0x10]
push esi
call fcn.00404cb0
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xac]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.004037c0
add esp, 0x18
cmp eax, 1
jne 0x40644b
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov edi, dword [ebp + 8]
push dword [esp + 4]
push dword [edi + 0x34]
call dword [edi + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], eax
or ecx, eax
je 0x40655f
mov dword [esp + 0x58], 0x8074b50
mov edx, dword [esp + 0x98]
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x5e], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x5f], cl
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0xc], 0
je 0x406438
mov byte [esp + 0x60], cl
mov byte [esp + 0x61], ch
mov ebx, ecx
shr ebx, 0x10
mov byte [esp + 0x62], bl
mov ebx, edx
shr ebx, 0x10
shr ecx, 0x18
mov byte [esp + 0x63], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], dh
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], cl
mov edx, dword [esp + 4]
mov byte [esp + 0x68], dl
mov byte [esp + 0x69], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x6a], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x6b], cl
mov dword [esp + 0x94], 0x38
mov dword [esp + 0xa0], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x54], 0x17
mov eax, dword [esp + 0x10]
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0xa4], 0x16
mov dword [esp + 0x9c], 0x15
mov edi, 0x14
jmp 0x4064b9
push dword [esp + 4]
push dword [edi + 0x34]
call dword [edi + 0x2c]
add esp, 8
mov dword [edi + 0x1c], 0x13
jmp 0x405b49
test edx, edx
je 0x406467
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405b49
push dword [esp + 4]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405b49
mov dword [esp + 0x60], ecx
mov dword [esp + 0x94], 0x18
mov dword [esp + 0xa0], 0x10
mov ecx, 8
mov dword [esp + 0x54], 0xf
mov dword [esp + 0xa4], 0xe
mov edx, dword [esp + 4]
mov byte [esp + 0x1b], dl
mov dword [esp + 0x9c], 0xd
mov edi, 0xc
mov dword [esp + 0x20], 0x10
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x10]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + edi + 0x58], al
test cl, 0x20
jne 0x4064d6
mov ebx, edx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x10]
shrd edx, eax, cl
mov edi, dword [esp + 0x9c]
mov byte [esp + edi + 0x58], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x4064fe
mov ebx, edx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x10]
shrd edx, eax, cl
mov edi, dword [esp + 0xa4]
mov byte [esp + edi + 0x58], bl
shr eax, cl
test cl, 0x20
jne 0x406524
mov eax, edx
mov ecx, dword [esp + 0x54]
mov byte [esp + ecx + 0x58], al
lea eax, [esp + 0x58]
mov edi, dword [esp + 0x20]
push edi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x405b49
mov eax, dword [esp + 0x20]
add dword [esp + 8], eax
adc dword [esp + 0x14], 0
cmp dword [esp + 0xc], 0
je 0x4065be
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
jb 0x406580
xor eax, eax
jmp 0x406584
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x40659f
mov ebx, 0
jmp 0x4065a3
lea ebx, [esp + 0x48]
jae 0x4065a9
lea edx, [esp + 0x30]
lea ecx, [esp + 0xb0]
push eax
push ebx
call fcn.004066f0
add esp, 8
mov dword [esp + 0x1c], eax
movzx edi, word [esp + 0x44]
movzx eax, word [esp + 0x40]
movzx ecx, word [esp + 0x1c]
mov dword [esp + 0x44], ecx
movzx ebx, word [esp + 0x3c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push edi
push eax
push dword [esp + 0xbc]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xe0]
push dword [ebp + 0x18]
push dword [esp + 0x84]
push dword [esp + 0x50]
push ebx
call fcn.004067b0
add esp, 0x4c
test eax, eax
je 0x405b49
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405b4b