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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov eax, dword [ebp + 0x20]
mov ebx, 6
test eax, eax
js 0x40589f
mov ebx, eax
mov eax, edi
or eax, esi
mov dword [esp + 0x18], ecx
je 0x4058b2
mov eax, ebx
and eax, 0x400
jmp 0x4058dc
mov dword [esp + 0x24], edi
mov edi, esi
mov esi, ebx
and ebx, 0x400
xor eax, eax
cmp dword [ebp + 0x14], 0
mov dword [esp + 8], ebx
je 0x40596b
test ebx, ebx
mov ebx, esi
mov esi, edi
mov edi, dword [esp + 0x24]
jne 0x4058e4
mov dword [esp + 8], eax
mov ax, 8
mov dword [esp + 0x24], eax
mov eax, ebx
xor eax, 0xfffeffff
mov ecx, ebx
or ecx, 0x10000
test ecx, eax
mov dword [esp + 0x44], esi
jne 0x40590f
mov eax, dword [esp + 0x24]
movzx eax, ax
or eax, 0x800
mov dword [esp + 0x24], eax
mov eax, dword [esp + 8]
and ebx, 0xf
sete ch
test eax, eax
setne al
mov esi, dword [edx + 0x48]
test esi, esi
je 0x4059e6
cmp dword [edx + 0x14], 2
jne 0x4059e6
cmp dword [ebp + 0x14], 0
sete cl
cmp dword [ebp + 0x10], 0
setne ah
cmp dword [ebp + 0xc], 0
je 0x4059e6
or ah, cl
je 0x4059e6
cmp word [ebp + 0x1c], 0
je 0x405978
cmp dword [ebp + 0x18], 0
je 0x4059e6
cmp ebx, 0xa
jbe 0x40597d
jmp 0x4059e6
mov ebx, esi
mov esi, edi
mov edi, dword [esp + 0x24]
jmp 0x4058e4
cmp ebx, 0xb
jae 0x4059e6
mov ah, ch
mov dword [esp + 0x14], esi
mov ecx, dword [esi + 0x34]
mov esi, dword [edx + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ecx
test ecx, ecx
je 0x4059a9
cmp dword [esp + 0x10], 0xffffffff
mov esi, dword [esp + 0x14]
jne 0x4059d7
mov dword [edx + 0x1c], 2
jmp 0x4059ed
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x44], 0
mov esi, dword [esp + 0x14]
jne 0x4059c8
mov dword [esp + 4], 0
cmp ecx, 0xffff
jne 0x4059d7
mov dword [esi + 0x34], 1
mov dword [esp + 4], 1
mov ecx, edi
or ecx, dword [esp + 0x44]
je 0x4059f7
cmp dword [esp + 8], 0
jne 0x4059f7
mov dword [edx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
jne 0x405a08
mov dword [edx + 0x1c], 0x19
jmp 0x4059ed
or ah, al
cmp dword [esp + 8], 0
mov byte [esp + 0x2c], ah
je 0x405a21
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x9c], eax
jmp 0x405a62
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
call fcn.00403600
add esp, 0xc
mov dword [esp + 0x9c], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0
mov eax, 0
cmp edi, 4
setb cl
jb 0x405a5c
mov eax, ebx
or byte [esp + 0x2c], cl
mov ebx, eax
push dword [ebp + 0xc]
call fcn.00408ec0
add esp, 4
cmp eax, 0x10000
jb 0x405a83
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x4059ed
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
or edx, ecx
mov edx, 0
je 0x405ab3
mov edx, 0xfffffffe
add edx, ecx
inc edx
mov eax, dword [eax]
and eax, edx
sub ecx, eax
and ecx, edx
mov edx, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esi + 4]
movzx eax, word [ebp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xa0], eax
add edx, eax
setb cl
mov dword [esp + 0x94], edx
mov eax, edx
add eax, dword [esp + 0x10]
mov dword [esp + 0x98], ecx
adc ecx, 0
add eax, 0x4a
adc ecx, 0
mov edx, 0xfffffffe
cmp edx, eax
sbb dword [esp + 0x28], ecx
jae 0x405b09
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x4059ed
cmp dword [esp + 4], 0
mov ecx, dword [esp + 0x10]
jne 0x405ba4
xor edx, edx
mov eax, ecx
add eax, dword [esp + 0x20]
setb dl
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
adc edx, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
add eax, 0x4c
adc edx, 0
mov dword [esp + 4], edx
mov edx, eax
and edx, ecx
mov ecx, edx
shr edx, 0x1f
mov dword [esp + 0x28], edx
add ecx, ecx
mov dword [esp + 0x90], ecx
xor eax, dword [esp + 0x10]
mov edx, dword [esp + 0x94]
add edx, dword [ebp + 0x38]
mov ecx, dword [esp + 0x98]
adc ecx, 0
add edx, dword [ebp + 0x40]
adc ecx, 0
add edx, eax
adc ecx, dword [esp + 4]
add edx, dword [esp + 0x90]
adc ecx, dword [esp + 0x28]
add edx, 0x26
adc ecx, 0xffffffff
mov dword [esp + 4], 0
cmp ecx, 0xffffffff
mov ecx, dword [esp + 0x10]
je 0x405ba4
mov dword [esi + 0x34], 1
mov dword [esp + 4], 1
xor edx, edx
test ecx, ecx
je 0x405bd0
mov eax, dword [ebp + 0xc]
cmp byte [ecx + eax - 1], 0x2f
mov eax, dword [ebp + 8]
jne 0x405bd0
cmp dword [ebp + 0x14], 0
jne 0x405dd3
mov edx, 0x10
or edi, dword [esp + 0x44]
jne 0x405dd3
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0xa0]
add eax, ecx
add eax, 0x2e
mov edx, dword [esp + 4]
test edx, edx
je 0x405bed
mov edx, 0x1c
mov ecx, edx
and ecx, eax
xor edx, eax
add edx, dword [esp + 0x1c]
lea eax, [edx + ecx*2]
mov edx, dword [esi + 8]
cmp edx, eax
mov ecx, dword [ebp + 0x14]
jae 0x405c41
mov edi, esi
mov ecx, 1
test edx, edx
je 0x405c11
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x405c11
push esi
push dword [edi + 0xc]
push dword [edi]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405db2
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov dword [edx + 8], esi
mov ecx, dword [ebp + 0x14]
mov esi, edx
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
inc eax
cmp edx, eax
jae 0x405c89
mov edi, esi
mov ecx, 1
test edx, edx
je 0x405c59
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x405c59
push esi
push dword [edi + 0x1c]
push dword [edi + 0x10]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x405db2
mov edx, dword [esp + 0x14]
mov dword [edx + 0x10], eax
mov dword [edx + 0x18], esi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
sete cl
xor eax, eax
or cl, byte [esp + 0x2c]
jne 0x405cb1
push 0x4df40
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x28]
add esp, 0xc
test eax, eax
je 0x405e10
mov dword [esp + 4], eax
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov edx, edi
push dword [esp + 0x20]
mov esi, dword [esp + 0x10]
push esi
call fcn.004064e0
add esp, 8
test eax, eax
je 0x405dbe
cmp dword [esp + 8], 0
sete byte [esp + 8]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
add eax, edx
adc ecx, 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
add edi, edx
mov dword [esp + 0x18], edi
adc esi, 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x34], ecx
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 dword [esp + 0x88], 0
mov word [esp + 0x8c], 0
movzx edx, byte [esp + 8]
and dl, byte [esp + 0x2c]
mov byte [esp + 8], dl
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0
je 0x405ddf
mov esi, 0xfffffffe
cmp esi, dword [esp + 0x38]
mov edx, 0
sbb edx, dword [esp + 0x3c]
jae 0x405e1f
xor edi, edi
cmp esi, dword [esp + 0x1c]
mov eax, 0
sbb eax, ecx
jae 0x405da5
lea edi, [esp + 0x30]
lea edx, [esp + 0x38]
lea eax, [esp + 0x48]
jmp 0x405e36
mov dword [edi + 0x1c], 0x10
jmp 0x4059ed
push dword [esp + 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x4059ed
mov dword [eax + 0x1c], 0x18
jmp 0x4059ed
cmp dword [esp + 0x4c], 0
mov edx, dword [esp + 0xc]
jne 0x4062fa
test edx, edx
jne 0x4062fa
mov dword [esp + 0x70], 0x4034b50
cmp byte [esp + 8], 0
jne 0x405f90
mov dl, 0x14
jmp 0x405f92
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x4059ed
mov eax, dword [esp + 0x1c]
cmp esi, eax
mov edx, 0
sbb edx, ecx
jae 0x405e5c
xor eax, eax
lea edi, [esp + 0x30]
xor edx, edx
lea ecx, [esp + 0xa8]
push edi
push eax
call fcn.00406580
add esp, 8
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xa8]
mov dword [esp + 0x14], edx
jmp 0x405e68
mov esi, eax
mov dword [esp + 0x14], 0
xor eax, eax
mov edx, dword [ebp + 0x38]
lea edi, [eax + edx]
mov dword [esp + 0x70], 0x4034b50
cmp byte [esp + 8], 0
mov dword [esp + 0x20], eax
jne 0x405e85
mov dl, 0x14
jmp 0x405e87
xor edx, edx
mov byte [esp + 0x74], dl
mov byte [esp + 0x75], 0
movzx edx, word [esp + 0x24]
mov byte [esp + 0x76], dl
mov byte [esp + 0x77], dh
mov edx, dword [esp + 0x28]
mov byte [esp + 0x78], dl
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov dword [esp + 0x85], 0
mov byte [esp + 0x89], 0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x8a], al
mov byte [esp + 0x8b], ah
mov eax, edi
mov byte [esp + 0x8c], al
mov byte [esp + 0x8d], ah
lea edx, [esp + 0x70]
push 0x1e
push edx
push ecx
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40610c
mov edi, dword [esp + 0x18]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 0xc]
adc esi, 0
push dword [esp + 0x10]
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x4060fc
mov eax, ecx
add edi, ecx
adc esi, 0
cmp dword [esp + 0x14], 0
mov ecx, edi
mov edx, esi
mov dword [esp + 0x54], ebx
je 0x40606a
lea eax, [esp + 0xa8]
mov esi, dword [esp + 0x20]
push esi
push eax
push edx
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov ebx, ecx
mov edi, edx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4060a2
add ebx, esi
adc edi, 0
mov ecx, ebx
mov edx, edi
jmp 0x406072
xor edx, edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x74], dl
mov edx, dword [esp + 0x24]
movzx esi, dx
mov byte [esp + 0x76], dl
mov edx, esi
mov byte [esp + 0x77], dh
mov edx, dword [esp + 0x28]
mov byte [esp + 0x78], dl
mov dword [esp + 0x79], 0
mov dword [esp + 0x7d], 0
mov dword [esp + 0x81], 0
mov dword [esp + 0x85], 0
mov byte [esp + 0x89], 0
mov edx, dword [esp + 0x10]
mov byte [esp + 0x8a], dl
mov edi, edx
mov byte [esp + 0x8b], dh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x8c], dl
mov byte [esp + 0x8d], dh
lea edx, [esp + 0x70]
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 0x40610c
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x18]
add ebx, 0x1e
mov eax, esi
mov esi, dword [esp + 0xc]
adc esi, 0
push edi
push dword [ebp + 0xc]
push esi
push ebx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4060fc
add ebx, edi
adc esi, 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov ecx, ebx
mov edx, esi
jmp 0x406072
mov dword [esp + 0x14], 0
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x4060b1
push edi
push dword [ebp + 0x34]
push edx
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov esi, ecx
mov ebx, edx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4060a2
add esi, edi
mov dword [esp + 0x18], esi
adc ebx, 0
mov dword [esp + 0xc], ebx
jmp 0x4060b9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x4059ed
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], ecx
cmp byte [esp + 0x2c], 0
je 0x406118
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x14]
push dword [esp + 0x24]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4060fc
mov eax, dword [ebp + 0x14]
add dword [esp + 0x18], eax
adc dword [esp + 0xc], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
jmp 0x4061db
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 0x4059ed
cmp dword [ebp + 0x14], 0
je 0x4061db
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x54]
mov ecx, eax
mov edx, eax
cmp eax, 0xa
jl 0x40615b
mov ecx, 0xa
xor eax, eax
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43ca58]
test edx, edx
jne 0x406176
or eax, 0x80000
lea ecx, [esp + 0x58]
push eax
push ecx
push 0x4065f0
mov esi, dword [esp + 0x10]
push esi
call fcn.00404b70
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0xa4]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.004036d0
add esp, 0x18
cmp eax, 1
jne 0x4062da
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 + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
push dword [esp + 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov esi, ecx
mov dword [esp + 8], eax
or ecx, eax
je 0x4063f3
mov dword [esp + 0x58], 0x8074b50
mov edx, dword [esp + 0x9c]
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 + 0x14], 0
je 0x4062f6
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, esi
mov byte [esp + 0x68], dl
mov byte [esp + 0x69], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x6a], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x6b], cl
mov dword [esp + 0x1c], 0x38
mov dword [esp + 0x94], 0x30
mov ecx, 0x28
mov dword [esp + 4], 0x18
mov dword [esp + 0x2c], 0x17
mov eax, dword [esp + 8]
mov edx, eax
mov byte [esp + 0x54], al
mov dword [esp + 0x98], 0x16
mov dword [esp + 0x90], 0x15
mov edi, 0x14
jmp 0x406356
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 0x4059ed
test edx, edx
je 0x406309
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x4059ed
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x94], 0x10
mov ecx, 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x98], 0xe
mov edx, esi
mov byte [esp + 0x54], dl
mov dword [esp + 0x90], 0xd
mov edi, 0xc
mov dword [esp + 4], 0x10
mov edx, esi
mov ebx, dword [esp + 8]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x54]
mov byte [esp + edi + 0x58], al
test cl, 0x20
jne 0x406371
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 8]
shrd edx, eax, cl
mov edi, dword [esp + 0x90]
mov byte [esp + edi + 0x58], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x406397
mov ebx, edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x98]
mov byte [esp + esi + 0x58], bl
shr eax, cl
test cl, 0x20
jne 0x4063b8
mov eax, edx
mov ecx, dword [esp + 0x2c]
mov byte [esp + ecx + 0x58], al
lea eax, [esp + 0x58]
mov esi, dword [esp + 4]
push esi
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4059ed
mov eax, dword [esp + 4]
add dword [esp + 0x18], eax
adc dword [esp + 0xc], 0
cmp dword [esp + 0x14], 0
je 0x406452
xor eax, eax
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x30]
mov ecx, 0
sbb ecx, dword [esp + 0x34]
jb 0x406414
xor edi, edi
jmp 0x406418
lea edi, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x38]
mov ecx, 0
sbb ecx, dword [esp + 0x3c]
jb 0x406433
mov edx, 0
jmp 0x406437
lea edx, [esp + 0x38]
jae 0x40643d
lea eax, [esp + 0x48]
lea ecx, [esp + 0xa8]
push edi
push eax
call fcn.00406580
add esp, 8
mov dword [esp + 0x20], eax
movzx ebx, word [esp + 0x24]
movzx esi, word [esp + 0x28]
movzx eax, word [esp + 0x20]
movzx edi, word [esp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x4c]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0
push 0
push ebx
push esi
push dword [esp + 0xc0]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0xd8]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x58]
push edi
call fcn.00406640
add esp, 0x4c
test eax, eax
je 0x4059ed
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x4059ef