Function at 0x405440
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 ebx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x28], edx
mov dword [esp + 4], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov ecx, dword [ebp + 0x20]
mov eax, 6
test ecx, ecx
js 0x40548f
mov eax, ecx
mov dword [esp + 0x3c], ebx
mov ecx, ebx
or ecx, esi
je 0x4054a3
mov ecx, eax
and ecx, 0x400
jmp 0x4054b7
mov ebx, eax
and ebx, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x4054bd
test ebx, ebx
jne 0x4054bd
mov ebx, ecx
mov cx, 8
test eax, 0x10000
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ebx
jne 0x4054d9
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x88], ecx
mov ebx, eax
and ebx, 0xf
sete cl
cmp dword [esp + 0x24], 0
setne dl
mov esi, dword [edi + 0x48]
mov dword [esp + 0xc], esi
test esi, esi
je 0x405979
cmp dword [edi + 0x14], 2
jne 0x405979
cmp dword [ebp + 0x14], 0
sete ch
cmp dword [ebp + 0x10], 0
setne dh
cmp dword [ebp + 0xc], 0
je 0x405979
or dh, ch
je 0x405979
cmp word [ebp + 0x1c], 0
setne ch
cmp dword [ebp + 0x18], 0
sete dh
test dh, ch
jne 0x405979
cmp ebx, 0xb
jae 0x405979
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 0x34]
mov dword [esp + 8], esi
mov esi, dword [edi + 0x10]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40557a
cmp dword [esp + 0x20], 0xffffffff
mov esi, dword [esp + 0x14]
jne 0x4055ad
mov dword [edi + 0x1c], 2
jmp 0x405980
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x405596
mov dword [esp + 8], 0
cmp edi, 0xffff
jne 0x4055ad
mov esi, dword [esp + 0xc]
mov dword [esi + 0x34], 1
mov esi, dword [esp + 0x14]
mov dword [esp + 8], 1
mov edi, dword [esp + 0x3c]
or edi, esi
je 0x4055d5
mov edi, eax
xor edi, 0xfffffbff
or eax, 0x400
and eax, edi
jne 0x4055d5
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x405980
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x2f
jne 0x4055ec
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405980
or cl, dl
movzx eax, cl
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], 0
mov edi, dword [ebp + 8]
je 0x405613
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x3c]
jmp 0x40565b
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.00403210
add esp, 0xc
mov dword [esp + 0x90], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
mov eax, 0
cmp esi, 4
jb 0x405643
mov eax, ebx
mov dword [esp + 0x38], eax
mov eax, 1
jb 0x405652
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
xor esi, esi
push dword [ebp + 0xc]
call fcn.004088b0
add esp, 4
cmp eax, 0x10000
jb 0x405679
mov dword [edi + 0x1c], 0x19
jmp 0x405980
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov ecx, 0xfffffffe
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
or edx, eax
mov edx, 0
je 0x4056c1
mov edx, eax
mov ebx, 0xfffffffe
or edx, ebx
mov ecx, edi
mov edi, eax
and edi, 0xfffffffe
add edx, edi
inc edx
and edx, dword [ecx]
mov ecx, 0xfffffffe
lea edi, [ebx + eax]
inc edi
sub eax, edx
and eax, edi
mov edx, eax
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
xor edx, edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
add ebx, eax
setb dl
add ebx, 0x2e
adc edx, 0
lea edi, [ebx + ebx]
and edi, 0x38
xor ebx, 0x1c
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x8c], eax
add ebx, eax
adc edx, 0
add ebx, edi
adc edx, 0
cmp ecx, ebx
sbb dword [esp + 0x1c], edx
jae 0x405716
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405980
cmp dword [esp + 8], 0
mov edi, dword [ebp + 8]
jne 0x405783
mov edi, dword [esp + 0x20]
mov ebx, edi
shr ebx, 0x1f
mov dword [esp + 8], 0
mov edx, dword [esp + 0x8c]
add edx, dword [ebp + 0x38]
mov ecx, 0
adc ecx, 0xffffffff
add edx, dword [ebp + 0x40]
adc ecx, 0
add edi, edi
add edx, edi
mov edi, dword [ebp + 8]
adc ecx, ebx
add edx, dword [esp + 0x48]
adc ecx, 0
add edx, dword [esp + 0x4c]
adc ecx, 0
add edx, dword [edi]
adc ecx, dword [edi + 4]
add edx, 0x72
adc ecx, 0
cmp ecx, 0xffffffff
je 0x405783
mov eax, dword [esp + 0xc]
mov dword [eax + 0x34], 1
mov dword [esp + 8], 1
xor eax, eax
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4057b0
mov ecx, dword [ebp + 0xc]
cmp byte [edx + ecx - 1], 0x2f
jne 0x4057b0
cmp dword [ebp + 0x14], 0
jne 0x405979
mov eax, 0x10
or dword [esp + 0x3c], esi
jne 0x405979
mov dword [esp + 0x3c], eax
mov ecx, edx
xor ecx, 0x2e
and edx, 0x2e
mov eax, dword [esp + 8]
test eax, eax
je 0x4057c9
mov eax, 0x1c
add ecx, dword [esp + 0x8c]
lea ecx, [ecx + edx*2]
add ecx, eax
add ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0xc]
mov edx, dword [ebx + 8]
cmp edx, ecx
jae 0x405817
mov eax, 1
test edx, edx
je 0x4057ef
mov eax, edx
mov esi, eax
add eax, eax
cmp esi, ecx
jb 0x4057ef
push esi
mov ebx, dword [esp + 0x10]
push dword [ebx + 0xc]
push dword [ebx]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40598a
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
inc eax
cmp edx, eax
jae 0x405857
mov ecx, 1
test edx, edx
je 0x40582d
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x40582d
push esi
mov ebx, dword [esp + 0x10]
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x40598a
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x40587e
cmp dword [esp + 0x14], 0
jne 0x40587e
push 0x4df40
push 1
push dword [edi + 0x34]
call dword [edi + 0x28]
add esp, 0xc
test eax, eax
je 0x40598a
mov dword [esp + 8], eax
mov ecx, edi
mov esi, dword [esp + 0x10]
mov edx, esi
mov ebx, edi
mov edi, dword [esp + 0x48]
push edi
push dword [esp + 8]
call fcn.00406090
add esp, 8
test eax, eax
je 0x405993
cmp dword [esp + 0x14], 0
sete dl
cmp dword [esp + 0x24], 0
setne dh
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, edi
adc ecx, 0
add esi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov ebx, dword [esp + 4]
adc ebx, 0
mov dword [esp + 0x68], 0
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 word [esp + 0x84], 0
or dh, dl
mov byte [esp + 0x1c], dh
movzx edx, dh
shl edx, 3
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc]
cmp dword [edx + 0x34], 0
je 0x4059a2
mov dword [esp + 4], ebx
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 0x405a9e
xor edx, edx
cmp ebx, eax
sbb edx, ecx
jb 0x405a9e
xor esi, esi
mov edi, dword [ebp + 8]
movzx ebx, byte [esp + 0x1c]
jmp 0x405afb
mov dword [edi + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi + 0x1c], 0x10
jmp 0x405980
push dword [esp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x2c]
add esp, 8
jmp 0x405980
cmp dword [esp + 0x44], 0
jne 0x405e94
test ebx, ebx
jne 0x405e94
mov dword [esp + 0x68], 0x4034b50
movzx edx, byte [esp + 0x1c]
test dl, dl
mov edi, dword [ebp + 8]
je 0x4059cb
mov dl, 0x14
mov dword [esp + 4], ebx
mov byte [esp + 0x6c], dl
mov ebx, dword [esp + 0x88]
movzx edx, bx
mov byte [esp + 0x6e], bl
mov byte [esp + 0x6f], dh
mov edx, dword [esp + 0x24]
mov byte [esp + 0x70], dl
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov byte [esp + 0x81], 0
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x82], bl
mov byte [esp + 0x83], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x84], dl
mov byte [esp + 0x85], dh
lea edx, [esp + 0x68]
push 0x1e
push edx
push ecx
push eax
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x405c08
mov eax, dword [esp + 0x10]
add eax, 0x1e
mov esi, dword [esp + 4]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x1c], eax
push eax
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405bfb
mov ecx, dword [esp + 0x10]
add ecx, ebx
adc esi, 0
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
jmp 0x405c20
xor edx, edx
cmp ebx, eax
mov eax, 0
sbb eax, ecx
jb 0x405aaf
xor eax, eax
jmp 0x405ab3
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, esi
movzx ebx, byte [esp + 0x1c]
jb 0x405acf
mov esi, 0
jmp 0x405ad3
lea esi, [esp + 0x40]
mov edi, dword [ebp + 8]
jae 0x405adc
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa0]
mov dword [esp + 0xc], ecx
push eax
push esi
call fcn.00406130
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x38]
add edx, esi
mov dword [esp + 0x68], 0x4034b50
test bl, bl
je 0x405b0e
mov bl, 0x14
mov byte [esp + 0x6c], bl
mov byte [esp + 0x6d], 0
movzx ebx, word [esp + 0x88]
mov byte [esp + 0x6e], bl
mov byte [esp + 0x6f], bh
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x70], bl
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov byte [esp + 0x81], 0
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x82], bl
mov byte [esp + 0x83], bh
mov byte [esp + 0x84], dl
mov byte [esp + 0x85], dh
lea edx, [esp + 0x68]
push 0x1e
push edx
push ecx
push eax
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x405c08
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x10]
add esi, 0x1e
mov eax, dword [esp + 4]
adc eax, 0
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0xc], eax
push eax
push esi
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405bfb
add esi, ebx
mov edi, dword [esp + 4]
adc edi, 0
cmp dword [esp + 0xc], 0
mov ecx, esi
je 0x405c14
lea eax, [esp + 0xa0]
mov esi, dword [esp + 0x1c]
push esi
push eax
push edi
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov ebx, ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405ca1
add ebx, esi
adc edi, 0
mov dword [esp + 4], edi
mov ecx, ebx
jmp 0x405c20
push dword [esp + 8]
push dword [edi + 0x34]
call dword [edi + 0x2c]
add esp, 8
mov dword [edi + 0x1c], 0x13
jmp 0x405980
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x405c56
push eax
push dword [ebp + 0x34]
mov ebx, dword [esp + 0xc]
push ebx
push ecx
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
mov esi, ecx
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, dword [ebp + 0x38]
mov eax, dword [ebp + 0x38]
jne 0x405c08
add esi, eax
mov dword [esp + 0x10], esi
adc ebx, 0
mov dword [esp + 4], ebx
jmp 0x405c5a
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x14], 0
je 0x405cb0
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405e74
mov eax, dword [ebp + 0x14]
add dword [esp + 0x10], eax
adc dword [esp + 4], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x405d75
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405980
cmp dword [ebp + 0x14], 0
je 0x405d75
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x38]
mov ecx, eax
cmp eax, 0xa
jl 0x405cf1
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x38]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43c968]
test edx, edx
jne 0x405d10
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x4061a0
mov esi, dword [esp + 0x14]
push esi
call fcn.00404750
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.004032d0
add esp, 0x18
cmp eax, 1
jne 0x405ea3
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 + 4], eax
push dword [esp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov esi, ecx
mov dword [esp + 0x14], eax
or ecx, eax
je 0x405fa3
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 + 0xc], 0
je 0x405e90
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 + 0x4c], 0x38
mov dword [esp + 0x98], 0x30
mov ecx, 0x28
mov dword [esp + 8], 0x18
mov dword [esp + 0x38], 0x17
mov eax, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0x48], 0x16
mov dword [esp + 0x94], 0x15
mov edi, 0x14
jmp 0x405f09
push dword [esp + 8]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405980
test edx, edx
je 0x405ebf
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405980
push dword [esp + 8]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405980
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x98], 0x10
mov ecx, 8
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x48], 0xe
mov edx, esi
mov byte [esp + 0x1b], dl
mov dword [esp + 0x94], 0xd
mov edi, 0xc
mov dword [esp + 8], 0x10
mov edx, esi
mov ebx, dword [esp + 0x14]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x405f24
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x14]
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 0x405f4a
mov ebx, edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x48]
mov byte [esp + esi + 0x50], bl
shr eax, cl
test cl, 0x20
jne 0x405f68
mov eax, edx
mov ecx, dword [esp + 0x38]
mov byte [esp + ecx + 0x50], al
lea eax, [esp + 0x50]
mov esi, dword [esp + 8]
push esi
push eax
push dword [esp + 0xc]
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405980
mov eax, dword [esp + 8]
add dword [esp + 0x10], eax
adc dword [esp + 4], 0
cmp dword [esp + 0xc], 0
je 0x406002
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x28]
mov eax, 0
sbb eax, dword [esp + 0x2c]
jb 0x405fc4
xor eax, eax
jmp 0x405fc8
lea eax, [esp + 0x28]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x405fe3
mov edi, 0
jmp 0x405fe7
lea edi, [esp + 0x40]
jae 0x405fed
lea edx, [esp + 0x30]
lea ecx, [esp + 0xa0]
push eax
push edi
call fcn.00406130
add esp, 8
mov dword [esp + 0x1c], eax
movzx ebx, word [esp + 0x88]
movzx esi, word [esp + 0x24]
movzx eax, word [esp + 0x1c]
movzx edi, word [esp + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push ebx
push esi
push dword [esp + 0xb4]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0xc4]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x50]
push edi
call fcn.004061f0
add esp, 0x4c
test eax, eax
je 0x405980
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405982