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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], eax
mov eax, dword [edx]
mov esi, dword [edx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov ecx, dword [ebp + 0x20]
mov eax, 6
test ecx, ecx
js 0x405a93
mov eax, ecx
mov edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x38], ebx
or ecx, ebx
je 0x405aac
mov ecx, eax
and ecx, 0x400
jmp 0x405abe
mov ebx, eax
and ebx, 0x400
xor ecx, ecx
test edi, edi
je 0x405ac4
test ebx, ebx
jne 0x405ac4
mov ebx, ecx
mov cx, 8
test eax, 0x10000
mov dword [esp + 8], ebx
jne 0x405ad8
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x4c], ecx
mov ebx, eax
not ebx
or ebx, 0xf
add ebx, eax
inc ebx
sete ch
cmp dword [esp + 8], 0
setne cl
mov eax, dword [edx + 0x48]
mov dword [esp + 4], eax
test eax, eax
je 0x405b53
cmp dword [edx + 0x14], 2
jne 0x405b53
mov dword [esp + 0x34], esi
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x405b19
test esi, esi
je 0x405b53
cmp dword [ebp + 0x10], 0
jne 0x405b1d
jmp 0x405b53
test esi, esi
je 0x405b53
cmp word [ebp + 0x1c], 0
je 0x405b4e
cmp dword [ebp + 0x18], 0
je 0x405b53
cmp ebx, 0xa
ja 0x405b53
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x34]
mov edx, dword [edx + 0x10]
test eax, eax
je 0x405b64
cmp edx, 0xffffffff
jne 0x405b81
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x405b5a
cmp ebx, 0xb
jb 0x405b2f
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 0x38], 0
jne 0x405b75
xor eax, eax
cmp edx, 0xffff
jne 0x405b81
mov dword [esi + 0x34], 1
mov eax, 1
mov edx, dword [esp + 0x3c]
or edx, dword [esp + 0x38]
je 0x405b9e
cmp dword [esp + 8], 0
jne 0x405b9e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x405b5a
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0x2f
mov edx, dword [ebp + 8]
jne 0x405bb2
mov dword [edx + 0x1c], 0x19
jmp 0x405b5a
mov dword [esp], eax
or cl, ch
movzx eax, cl
mov dword [esp + 0x18], eax
cmp dword [esp + 8], 0
je 0x405bd5
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x1c], ebx
jmp 0x405c21
push edi
push dword [ebp + 0x10]
push 0
call fcn.004037e0
add esp, 0xc
mov dword [esp + 0x90], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
mov eax, 0
cmp edi, 4
jb 0x405c0a
mov eax, ebx
mov dword [esp + 0x1c], eax
mov eax, 1
jb 0x405c19
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00408ee0
add esp, 4
cmp eax, 0x10000
jb 0x405c43
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405b5a
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], 0
mov edi, 0xfffffffe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
or ecx, eax
mov ecx, 0
je 0x405c74
lea ecx, [edi + eax]
inc ecx
mov ebx, dword [edx]
and ebx, ecx
sub eax, ebx
and eax, ecx
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 4]
mov edx, dword [eax + 4]
mov ecx, 0xfffffffe
movzx eax, word [ebp + 0x1c]
xor ebx, ebx
mov edi, dword [esp + 0x30]
mov esi, eax
add edi, eax
setb bl
add edi, edx
adc ebx, 0
mov eax, edi
mov dword [esp + 0x8c], edi
add eax, 0x4a
adc ebx, 0
cmp ecx, eax
sbb dword [esp + 0xc], ebx
jae 0x405cc0
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405b5a
cmp dword [esp], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, esi
jne 0x405d5a
mov esi, dword [ecx + 4]
mov ebx, dword [ecx]
add ebx, dword [esp + 0x48]
adc esi, 0
lea eax, [ebx + ebx]
and eax, 0x3c
mov dword [esp], eax
xor ebx, 0x1e
mov eax, dword [esp + 0x30]
mov ecx, eax
shr ecx, 0x1f
mov dword [esp + 0xc], ecx
xor ecx, ecx
add edx, edi
setb cl
add edx, dword [ebp + 0x38]
adc ecx, 0
add eax, eax
add edx, eax
adc ecx, dword [esp + 0xc]
add edx, ebx
adc ecx, esi
add edx, dword [esp]
adc ecx, 0
add edx, 0x44
adc ecx, 0
mov eax, edx
mov esi, dword [ebp + 0x40]
and eax, esi
mov ebx, eax
shr ebx, 0x1f
add eax, eax
xor edx, esi
add edx, eax
adc ebx, ecx
mov ecx, dword [ebp + 8]
add edx, 0x10
adc ebx, 0xffffffff
mov dword [esp], 0
cmp ebx, 0xffffffff
mov eax, dword [ebp + 0xc]
je 0x405d5a
mov edx, dword [esp + 4]
mov dword [edx + 0x34], 1
mov dword [esp], 1
xor ebx, ebx
mov edx, dword [esp + 0x30]
test edx, edx
je 0x405d88
cmp byte [edx + eax - 1], 0x2f
jne 0x405d88
cmp dword [ebp + 0x14], 0
jne 0x405fb6
mov ebx, 0x10
mov eax, dword [esp + 0x3c]
or eax, dword [esp + 0x38]
jne 0x405fb6
mov dword [esp + 0x38], ebx
mov esi, dword [esp]
test esi, esi
je 0x405d98
mov esi, 0x1c
mov eax, dword [esp + 0x8c]
add eax, esi
add eax, 0x2e
mov ebx, dword [esp + 4]
mov edx, dword [ebx + 8]
cmp edx, eax
mov dword [esp + 0x3c], edi
jae 0x405e01
mov esi, 1
test edx, edx
je 0x405dd8
mov esi, edx
jmp 0x405dd8
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 0x405dc0
push esi
mov ebx, dword [esp + 8]
push dword [ebx + 0xc]
push dword [ebx]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405f99
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, edi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
inc eax
cmp edx, eax
mov esi, dword [ebp + 0x14]
jae 0x405e62
mov esi, 1
test edx, edx
je 0x405e34
mov esi, edx
jmp 0x405e34
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 0x405e1c
push esi
mov ebx, dword [esp + 8]
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405f99
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov ecx, edi
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
mov ebx, dword [esp + 0x48]
je 0x405e91
cmp dword [esp + 0x18], 0
jne 0x405e91
push 0x4df40
push 1
push dword [ecx + 0x34]
mov eax, dword [ebp + 8]
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x405ff2
mov dword [esp], eax
mov esi, ecx
mov edi, dword [esp + 0x10]
mov edx, edi
push ebx
push dword [esp + 0x38]
call fcn.004066a0
add esp, 8
test eax, eax
je 0x405fa5
cmp dword [esp + 0x18], 0
setne dl
cmp dword [esp + 8], 0
sete dh
mov eax, dword [esp + 0x20]
mov esi, eax
and esi, ebx
mov ecx, esi
shr ecx, 0x1f
add esi, esi
xor eax, ebx
add eax, esi
adc ecx, dword [esp + 0x24]
mov esi, edi
and esi, ebx
xor edi, ebx
mov ebx, esi
shr ebx, 0x1f
add esi, esi
add edi, esi
mov dword [esp + 0x10], edi
adc ebx, dword [esp + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
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 word [esp + 0x88], 0
and dh, dl
mov byte [esp + 0xc], dh
mov dl, dh
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x34], edx
mov edx, dword [esp + 4]
cmp dword [edx + 0x34], 0
je 0x405fc2
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 4], 0
mov edx, 0xfffffffe
cmp edx, edi
mov edx, 0
sbb edx, esi
jb 0x405ffe
xor edx, edx
mov ebx, 0xfffffffe
cmp ebx, eax
sbb edx, ecx
jb 0x405ffe
xor edi, edi
mov ebx, dword [ebp + 0x38]
jmp 0x40605b
mov dword [edi + 0x1c], 0x10
jmp 0x405b5a
push dword [esp]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
jmp 0x405b5a
mov dword [ecx + 0x1c], 0x18
jmp 0x405b5a
cmp dword [esp + 0x44], 0
jne 0x40649e
cmp dword [esp + 8], 0
jne 0x40649e
mov dword [esp + 0x6c], 0x4034b50
cmp byte [esp + 0xc], 0
jne 0x406166
mov dl, 0x14
jmp 0x406168
mov dword [ecx + 0x1c], 0x10
jmp 0x405b5a
xor edx, edx
mov ebx, 0xfffffffe
cmp ebx, eax
mov eax, 0
sbb eax, ecx
jb 0x406014
xor eax, eax
jmp 0x406018
lea eax, [esp + 0x20]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, esi
mov ebx, dword [ebp + 0x38]
jb 0x406032
mov esi, 0
jmp 0x406036
lea esi, [esp + 0x40]
jae 0x40603c
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa0]
mov dword [esp + 4], ecx
push eax
push esi
call fcn.00406740
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [edi + ebx]
mov dword [esp + 0x6c], 0x4034b50
cmp byte [esp + 0xc], 0
jne 0x406071
mov bl, 0x14
jmp 0x406073
xor ebx, ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], 0
movzx ebx, word [esp + 0x4c]
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], bh
mov ebx, dword [esp + 0x34]
mov byte [esp + 0x74], bl
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov byte [esp + 0x85], 0
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x86], bl
mov byte [esp + 0x87], bh
mov byte [esp + 0x88], dl
mov byte [esp + 0x89], dh
lea edx, [esp + 0x6c]
push 0x1e
push edx
push ecx
push eax
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4062b1
mov dword [esp + 0xc], edi
mov eax, esi
mov esi, dword [esp + 0x10]
add esi, 0x1e
mov edi, dword [esp + 8]
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 0x4062a2
add esi, ebx
adc edi, 0
cmp dword [esp + 4], 0
mov ecx, esi
je 0x40622f
lea eax, [esp + 0xa0]
mov ebx, dword [esp + 0xc]
push ebx
push eax
push edi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov esi, ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x4062bd
add esi, ebx
adc edi, 0
jmp 0x40622b
xor edx, edx
mov ebx, dword [esp + 0x4c]
mov byte [esp + 0x70], dl
movzx edx, bx
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], dh
mov edx, dword [esp + 0x34]
mov byte [esp + 0x74], dl
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov byte [esp + 0x85], 0
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x86], bl
mov byte [esp + 0x87], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x88], dl
mov byte [esp + 0x89], dh
lea edx, [esp + 0x6c]
push 0x1e
push edx
push ecx
push eax
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4062b1
mov eax, esi
mov esi, dword [esp + 0x10]
add esi, 0x1e
mov edi, dword [esp + 8]
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 0x4062a2
add esi, ebx
adc edi, 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
mov ecx, esi
jmp 0x406237
mov dword [esp + 4], 0
mov ebx, dword [ebp + 0x38]
test ebx, ebx
je 0x40625d
push ebx
push dword [ebp + 0x34]
push edi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov esi, ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x4062bd
add esi, ebx
adc edi, 0
mov ecx, esi
cmp dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edi
je 0x4062cc
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push edi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4062a2
mov eax, dword [ebp + 0x14]
add dword [esp + 0x10], eax
adc dword [esp + 8], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x40639d
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405b5a
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405b5a
cmp dword [ebp + 0x14], 0
je 0x40639d
mov eax, dword [esp + 0x1c]
mov ecx, eax
cmp eax, 0xa
jl 0x4062e6
mov ecx, 0xa
cmp dword [esp + 0x1c], 0
jns 0x4062f2
mov ecx, 6
xor eax, eax
mov edx, dword [esp + 0x1c]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43da58]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
test edx, edx
jne 0x406338
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x4067b0
mov esi, dword [esp + 0xc]
push esi
call fcn.00404d90
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.004038a0
add esp, 0x18
cmp eax, 1
jne 0x4064ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp + 0x18], eax
or ecx, eax
je 0x4065af
mov dword [esp + 0x50], 0x8074b50
mov edx, dword [esp + 0x90]
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x56], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x57], cl
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [esp + 4], 0
je 0x40649a
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov ebx, ecx
shr ebx, 0x10
mov byte [esp + 0x5a], bl
mov ebx, edx
shr ebx, 0x10
shr ecx, 0x18
mov byte [esp + 0x5b], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], dh
mov byte [esp + 0x5e], bl
mov byte [esp + 0x5f], cl
mov edx, esi
mov byte [esp + 0x60], dl
mov byte [esp + 0x61], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x62], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x63], cl
mov dword [esp + 0x48], 0x38
mov dword [esp + 0x98], 0x30
mov ecx, 0x28
mov dword [esp], 0x18
mov dword [esp + 0x1c], 0x17
mov eax, dword [esp + 0x18]
mov edx, eax
mov byte [esp + 0x17], al
mov dword [esp + 0x8c], 0x16
mov dword [esp + 0x94], 0x15
mov edi, 0x14
jmp 0x406514
test edx, edx
je 0x4064c8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405b5a
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405b5a
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x98], 0x10
mov ecx, 8
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x8c], 0xe
mov edx, esi
mov byte [esp + 0x17], dl
mov dword [esp + 0x94], 0xd
mov edi, 0xc
mov dword [esp], 0x10
mov edx, esi
mov ebx, dword [esp + 0x18]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x17]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x40652f
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x18]
shrd edx, eax, cl
mov edi, dword [esp + 0x94]
mov byte [esp + edi + 0x50], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x406555
mov ebx, edx
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x8c]
mov byte [esp + esi + 0x50], bl
shr eax, cl
test cl, 0x20
jne 0x406576
mov eax, edx
mov ecx, dword [esp + 0x1c]
mov byte [esp + ecx + 0x50], al
lea eax, [esp + 0x50]
mov esi, dword [esp]
push esi
push eax
push dword [esp + 0x10]
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405b5a
mov eax, dword [esp]
add dword [esp + 0x10], eax
adc dword [esp + 8], 0
cmp dword [esp + 4], 0
je 0x40660e
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x20]
mov eax, 0
sbb eax, dword [esp + 0x24]
jb 0x4065d0
xor eax, eax
jmp 0x4065d4
lea eax, [esp + 0x20]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x4065ef
mov edi, 0
jmp 0x4065f3
lea edi, [esp + 0x40]
jae 0x4065f9
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa0]
push eax
push edi
call fcn.00406740
add esp, 8
mov dword [esp + 0xc], eax
movzx ebx, word [esp + 0x4c]
movzx esi, word [esp + 0x34]
movzx eax, word [esp + 0xc]
movzx edi, word [esp + 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x40]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0
push 0
push ebx
push esi
push dword [esp + 0xb4]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [esp + 0x74]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x48]
push edi
call fcn.00406800
add esp, 0x4c
test eax, eax
je 0x405b5a
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405b5c