Function at 0x405f30
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 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 eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0x30], eax
mov dword [esp], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [ebp + 0x20]
mov ebx, 6
test eax, eax
js 0x405f82
mov ebx, eax
mov eax, edi
or eax, esi
je 0x405f91
mov eax, ebx
and eax, 0x400
jmp 0x405fa5
mov ecx, ebx
and ecx, 0x400
xor eax, eax
cmp dword [ebp + 0x14], 0
je 0x405fab
test ecx, ecx
jne 0x405fab
mov ecx, eax
mov ax, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], eax
mov eax, ebx
xor eax, 0xfffeffff
mov ecx, ebx
or ecx, 0x10000
test ecx, eax
jne 0x405fd6
mov eax, dword [esp + 0x4c]
movzx eax, ax
or eax, 0x800
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x24]
and ebx, 0xf
sete ah
test ecx, ecx
setne al
mov ecx, dword [edx + 0x48]
test ecx, ecx
je 0x40609b
cmp dword [edx + 0x14], 2
jne 0x40609b
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
je 0x40601a
test ecx, ecx
je 0x40609b
cmp dword [ebp + 0x10], 0
jne 0x40601e
jmp 0x40609b
test ecx, ecx
je 0x40609b
cmp word [ebp + 0x1c], 0
setne cl
cmp dword [ebp + 0x18], 0
sete dl
test dl, cl
mov ecx, dword [esp + 4]
mov edx, dword [ebp + 8]
jne 0x40609b
cmp ebx, 0xb
jae 0x40609b
mov dword [esp + 0x1c], ebx
mov ecx, dword [ecx + 0x34]
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x406063
cmp dword [esp + 0x10], 0xffffffff
jne 0x40608e
mov dword [edx + 0x1c], 2
jmp 0x4060a2
mov ecx, dword [esp + 0x10]
test esi, esi
jne 0x40607b
mov dword [esp + 0x20], 0
cmp ecx, 0xffff
jne 0x40608e
mov ecx, dword [esp + 4]
mov dword [ecx + 0x34], 1
mov dword [esp + 0x20], 1
mov ecx, edi
or ecx, esi
je 0x4060ac
cmp dword [esp + 0x24], 0
jne 0x4060ac
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 0x4060bd
mov dword [edx + 0x1c], 0x19
jmp 0x4060a2
or ah, al
mov byte [esp + 0x10], ah
cmp dword [esp + 0x24], 0
je 0x4060da
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x90], eax
mov ebx, dword [esp + 0x1c]
jmp 0x40611c
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
call fcn.00403bc0
add esp, 0xc
mov dword [esp + 0x90], eax
xor esi, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0
mov eax, 0
cmp edi, 4
setb cl
mov edx, dword [esp + 0x1c]
jb 0x406113
mov eax, edx
or byte [esp + 0x10], cl
mov ebx, eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004095d0
add esp, 4
cmp eax, 0x10000
jb 0x40613b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x4060a2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
or edx, ecx
mov edx, 0
je 0x406171
mov edx, 0xfffffffe
add edx, ecx
inc edx
mov eax, dword [eax]
and eax, edx
sub ecx, eax
mov eax, ecx
not eax
or eax, edx
lea edx, [eax + ecx]
inc edx
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
movzx edx, word [ebp + 0x1c]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x98], edx
add ecx, edx
setb al
mov dword [esp + 0x88], ecx
add ecx, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
adc eax, 0
mov dword [esp + 0x28], ecx
add ecx, 0x4a
adc eax, 0
mov edx, 0xfffffffe
cmp edx, ecx
sbb dword [esp + 0x14], eax
jae 0x4061d1
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x4060a2
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x406250
xor edx, edx
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
setb dl
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
adc edx, dword [ecx + 4]
add eax, 0x1e
adc edx, 0
mov dword [esp + 0x20], edx
lea ecx, [eax + eax]
and ecx, 0x5c
mov dword [esp + 0x14], ecx
xor eax, 0x2e
mov edx, dword [esp + 0x88]
add edx, dword [ebp + 0x38]
mov ecx, dword [esp + 0x8c]
adc ecx, 0
add edx, dword [ebp + 0x40]
adc ecx, 0
add edx, dword [esp + 0xc]
adc ecx, 0
add edx, eax
adc ecx, dword [esp + 0x20]
add edx, dword [esp + 0x14]
adc ecx, 0
add edx, 0x26
adc ecx, 0xffffffff
xor eax, eax
cmp ecx, 0xffffffff
je 0x406250
mov eax, dword [esp + 4]
mov dword [eax + 0x34], 1
mov eax, 1
xor edx, edx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x40628a
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
cmp byte [ecx + eax - 1], 0x2f
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
jne 0x40628d
cmp dword [ebp + 0x14], 0
jne 0x40627e
mov edx, 0x10
or edi, esi
je 0x40628d
mov dword [ecx + 0x1c], 0x18
jmp 0x4060a2
mov ecx, dword [ebp + 8]
mov dword [esp + 0x20], edx
test eax, eax
je 0x40629a
mov eax, 0x1c
mov edx, dword [esp + 0x28]
add eax, edx
add eax, 0x2e
mov esi, dword [esp + 4]
mov edx, dword [esi + 8]
cmp edx, eax
jae 0x406302
mov esi, 1
test edx, edx
je 0x4062d3
mov esi, edx
jmp 0x4062d3
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 0x4062bb
push esi
mov eax, dword [esp + 8]
push dword [eax + 0xc]
push dword [eax]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x406485
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov dword [ecx + 8], esi
mov esi, ecx
mov ecx, edi
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
inc eax
cmp edx, eax
jae 0x406361
mov esi, 1
test edx, edx
je 0x406332
mov esi, edx
jmp 0x406332
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 0x40631a
push esi
mov eax, dword [esp + 8]
push dword [eax + 0x1c]
push dword [eax + 0x10]
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x406485
mov ecx, dword [esp + 4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], esi
mov ecx, edi
cmp dword [ebp + 0x14], 0
sete dl
xor eax, eax
or dl, byte [esp + 0x10]
jne 0x40638e
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 0x4064da
mov dword [esp + 0xc], eax
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x2c]
push edi
mov esi, dword [esp + 4]
push esi
call fcn.00406ba0
add esp, 8
test eax, eax
je 0x406491
cmp dword [esp + 0x24], 0
sete dl
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add eax, edi
adc ecx, 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 8]
add eax, edi
adc esi, 0
mov dword [esp + 0x34], ecx
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
and dl, byte [esp + 0x10]
mov byte [esp + 0x14], dl
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x24], edx
mov edx, dword [esp + 4]
cmp dword [edx + 0x34], 0
je 0x4064a6
mov dword [esp], esi
mov dword [esp + 8], eax
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov dword [esp + 4], 0
mov eax, 0xfffffffe
cmp eax, edi
mov edx, 0
mov dword [esp + 0x2c], esi
sbb edx, esi
mov eax, dword [esp + 0x28]
jb 0x4064e6
xor edx, edx
mov esi, eax
mov eax, 0xfffffffe
cmp eax, esi
mov eax, esi
sbb edx, ecx
jb 0x4064e6
xor edi, edi
jmp 0x406544
mov dword [edi + 0x1c], 0x10
jmp 0x4060a2
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x4060a2
cmp dword [esp + 0x44], 0
jne 0x4069b7
test esi, esi
jne 0x4069b7
mov dword [esp + 0x68], 0x4034b50
cmp byte [esp + 0x14], 0
mov dword [esp + 8], eax
mov dword [esp], esi
jne 0x40665d
mov dl, 0x14
jmp 0x40665f
mov dword [ecx + 0x1c], 0x10
jmp 0x4060a2
xor edx, edx
mov esi, eax
mov eax, 0xfffffffe
cmp eax, esi
mov eax, 0
sbb eax, ecx
jb 0x4064fe
xor eax, eax
jmp 0x406502
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x40651b
mov esi, 0
jmp 0x40651f
lea esi, [esp + 0x40]
jae 0x406525
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa0]
mov dword [esp + 4], ecx
push eax
push esi
call fcn.00406c40
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x38]
lea esi, [edi + edx]
mov dword [esp + 0x68], 0x4034b50
cmp byte [esp + 0x14], 0
jne 0x40655d
mov dl, 0x14
jmp 0x40655f
xor edx, edx
mov byte [esp + 0x6c], dl
mov byte [esp + 0x6d], 0
movzx edx, word [esp + 0x4c]
mov byte [esp + 0x6e], dl
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 edx, dword [esp + 0x1c]
mov byte [esp + 0x82], dl
mov byte [esp + 0x83], dh
mov edx, esi
mov byte [esp + 0x84], dl
mov byte [esp + 0x85], dh
lea edx, [esp + 0x68]
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 0x4067c0
mov dword [esp + 0x14], edi
mov edi, dword [esp + 8]
add edi, 0x1e
mov eax, dword [esp]
adc eax, 0
mov ecx, esi
mov esi, dword [esp + 0x1c]
push esi
push dword [ebp + 0xc]
mov dword [esp + 8], eax
push eax
push edi
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4067b0
add edi, esi
mov ecx, dword [esp]
adc ecx, 0
cmp dword [esp + 4], 0
mov esi, edi
mov dword [esp], ecx
je 0x406735
lea eax, [esp + 0xa0]
mov edi, dword [esp + 0x14]
push edi
push eax
push ecx
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4067cc
add esi, edi
adc dword [esp], 0
jmp 0x40673d
xor edx, edx
mov eax, dword [esp + 0x28]
mov byte [esp + 0x6c], dl
mov edx, dword [esp + 0x4c]
movzx esi, dx
mov byte [esp + 0x6e], dl
mov edx, esi
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 edx, dword [esp + 0x1c]
mov byte [esp + 0x82], dl
mov edi, edx
mov byte [esp + 0x83], dh
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
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4067c0
mov eax, dword [esp + 8]
add eax, 0x1e
mov ecx, esi
mov esi, dword [esp]
adc esi, 0
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x14], eax
push eax
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4067b0
mov ecx, dword [esp + 8]
add ecx, edi
adc esi, 0
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0
mov esi, ecx
jmp 0x40673d
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x406769
push eax
push dword [ebp + 0x34]
mov edi, dword [esp + 8]
push edi
push esi
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 0x4067cc
add esi, ecx
adc edi, 0
mov dword [esp], edi
mov ecx, dword [ebp + 0x14]
movzx eax, byte [esp + 0x10]
test al, al
mov dword [esp + 8], esi
je 0x4067db
push ecx
push dword [ebp + 0x10]
push dword [esp + 8]
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov esi, ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4067b0
mov eax, dword [ebp + 0x14]
add dword [esp + 8], eax
adc dword [esp], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x406898
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x4060a2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x4060a2
test ecx, ecx
je 0x406898
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov eax, ebx
mov ecx, ebx
mov edx, ebx
cmp ebx, 0xa
jb 0x406819
mov ecx, 0xa
xor eax, eax
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43da58]
test edx, edx
jne 0x406834
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x406cb0
mov esi, dword [esp + 0x18]
push esi
call fcn.00405230
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.00403c80
add esp, 0x18
cmp eax, 1
jne 0x406997
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 + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
push dword [esp + 0xc]
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 + 0x10], eax
or ecx, eax
je 0x406aaf
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 0x4069b3
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 + 0x2c], 0x38
mov dword [esp + 0x88], 0x30
mov ecx, 0x28
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x28], 0x17
mov eax, dword [esp + 0x10]
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0x8c], 0x16
mov dword [esp + 0x94], 0x15
mov edi, 0x14
jmp 0x406a13
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x4060a2
test edx, edx
je 0x4069c6
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x4060a2
mov dword [esp + 0x58], ecx
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x88], 0x10
mov ecx, 8
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x8c], 0xe
mov edx, esi
mov byte [esp + 0x1b], dl
mov dword [esp + 0x94], 0xd
mov edi, 0xc
mov dword [esp + 0xc], 0x10
mov edx, esi
mov ebx, dword [esp + 0x10]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x406a2e
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
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 0x406a54
mov ebx, edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
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 0x406a75
mov eax, edx
mov ecx, dword [esp + 0x28]
mov byte [esp + ecx + 0x50], al
lea eax, [esp + 0x50]
mov esi, dword [esp + 0xc]
push esi
push eax
push dword [esp + 8]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4060a2
mov eax, dword [esp + 0xc]
add dword [esp + 8], eax
adc dword [esp], 0
cmp dword [esp + 4], 0
je 0x406b0e
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x30]
mov eax, 0
sbb eax, dword [esp + 0x34]
jb 0x406ad0
xor eax, eax
jmp 0x406ad4
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x38]
mov ecx, 0
sbb ecx, dword [esp + 0x3c]
jb 0x406aef
mov edi, 0
jmp 0x406af3
lea edi, [esp + 0x40]
jae 0x406af9
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa0]
push eax
push edi
call fcn.00406c40
add esp, 8
mov dword [esp + 0x14], eax
movzx ebx, word [esp + 0x4c]
movzx esi, word [esp + 0x24]
movzx eax, word [esp + 0x14]
movzx edi, word [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x28]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0
push 0
push ebx
push esi
push dword [esp + 0xb4]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0xd0]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x48]
push edi
call fcn.00406d00
add esp, 0x4c
test eax, eax
je 0x4060a2
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x4060a4