Function at 0x405360
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 ebx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov eax, dword [ebp + 0x20]
mov edi, 6
test eax, eax
js 0x4053b3
mov edi, eax
mov eax, ebx
or eax, esi
je 0x4053c3
mov ecx, edi
and ecx, 0x400
jmp 0x4053d6
mov eax, edi
and eax, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x4053dc
test eax, eax
jne 0x4053dc
mov eax, ecx
mov cx, 8
test edi, 0x10000
jne 0x4053ed
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x94], ecx
mov ecx, edi
and ecx, 0xf
mov dword [esp + 0x20], ecx
sete byte [esp + 0x2c]
test eax, eax
setne cl
mov edx, dword [edx + 0x48]
mov dword [esp + 4], edx
test edx, edx
je 0x4054bc
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x4054bc
cmp dword [ebp + 0x14], 0
sete dl
cmp dword [ebp + 0x10], 0
setne ch
cmp dword [ebp + 0xc], 0
je 0x4054bc
or ch, dl
je 0x4054bc
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ch
test ch, dl
jne 0x4054bc
cmp dword [esp + 0x20], 0xb
jae 0x4054bc
mov dword [esp + 8], esi
mov edx, dword [esp + 4]
mov esi, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x18], esi
test esi, esi
je 0x405487
cmp edx, 0xffffffff
mov esi, dword [esp + 8]
jne 0x4054b2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x4054c6
mov esi, dword [esp + 8]
test esi, esi
jne 0x40549f
mov dword [esp + 0x18], 0
cmp edx, 0xffff
jne 0x4054b2
mov edx, dword [esp + 4]
mov dword [edx + 0x34], 1
mov dword [esp + 0x18], 1
mov edx, ebx
or edx, esi
je 0x4054d0
test eax, eax
jne 0x4054d0
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 edx, dword [ebp + 0xc]
cmp byte [edx], 0x2f
mov edx, dword [ebp + 8]
jne 0x4054e4
mov dword [edx + 0x1c], 0x19
jmp 0x4054c6
or byte [esp + 0x2c], cl
test eax, eax
je 0x4054f8
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x9c], eax
jmp 0x405537
mov ebx, dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push 0
call fcn.00402f20
add esp, 0xc
mov dword [esp + 0x9c], eax
xor esi, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0
mov eax, 0
cmp ebx, 4
setb cl
jb 0x40552f
mov eax, dword [esp + 0x20]
or byte [esp + 0x2c], cl
mov dword [esp + 0x20], eax
push dword [ebp + 0xc]
call fcn.00408ad0
add esp, 4
cmp eax, 0x10000
jb 0x405558
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x4054c6
mov dword [esp + 8], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
or edx, ecx
mov eax, 0
je 0x40559f
mov edx, ecx
mov eax, 0xfffffffe
or edx, eax
mov esi, 0xfffffffe
mov eax, ecx
and eax, 0xfffffffe
add eax, edx
inc eax
mov edx, dword [ebp + 8]
and eax, dword [edx]
lea edx, [esi + ecx]
inc edx
sub ecx, eax
and ecx, edx
mov eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
xor eax, eax
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
add edx, ecx
setb al
add edx, 0x4a
adc eax, 0
movzx esi, word [ebp + 0x1c]
mov ecx, edx
and ecx, esi
add ecx, ecx
mov dword [esp + 0x98], esi
xor edx, esi
add edx, ecx
adc eax, 0
mov ecx, 0xfffffffe
cmp ecx, edx
sbb dword [esp + 0x24], eax
jae 0x4055f3
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x4054c6
cmp dword [esp + 0x18], 0
mov edx, dword [ebp + 8]
jne 0x4056b8
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, dword [esp + 0x4c]
adc eax, 0
add edx, 0x1e
adc eax, 0
mov ecx, edx
and ecx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
shr dword [esp + 0x24], 0x1f
add ecx, ecx
xor edx, dword [esp + 0x28]
add edx, ecx
mov ecx, dword [esp + 0x24]
adc ecx, eax
add edx, 0x2e
adc ecx, 0
mov dword [esp + 0x24], ecx
mov ecx, edx
and ecx, dword [esp + 0x28]
mov eax, ecx
shr eax, 0x1f
mov dword [esp + 0x90], eax
add ecx, ecx
mov dword [esp + 0x8c], ecx
xor edx, dword [esp + 0x28]
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x98]
add ecx, dword [ebp + 0x38]
mov eax, 0
adc eax, 0xffffffff
add ecx, dword [ebp + 0x40]
adc eax, 0
add ecx, dword [esp + 0x10]
adc eax, 0
add ecx, edx
mov edx, dword [ebp + 8]
adc eax, dword [esp + 0x24]
add ecx, dword [esp + 0x8c]
adc eax, dword [esp + 0x90]
add ecx, 0x26
adc eax, 0
cmp eax, 0xffffffff
je 0x4056b8
mov eax, dword [esp + 4]
mov dword [eax + 0x34], 1
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov esi, dword [esp + 8]
je 0x4056f0
mov eax, dword [ebp + 0xc]
cmp byte [ecx + eax - 1], 0x2f
jne 0x4056f0
cmp dword [ebp + 0x14], 0
jne 0x4058fb
mov dword [esp + 0x24], 0x10
or ebx, esi
jne 0x4058fb
lea eax, [ecx + 0x2e]
mov ecx, eax
mov edx, dword [esp + 0x98]
and ecx, edx
xor eax, edx
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405710
mov eax, 0x1c
add ecx, dword [esp + 0x10]
add ecx, eax
mov ebx, dword [esp + 4]
mov edx, dword [ebx + 8]
cmp edx, ecx
mov esi, dword [ebp + 0x14]
jae 0x40575d
mov eax, 1
test edx, edx
je 0x40572f
mov eax, edx
mov esi, eax
add eax, eax
cmp esi, ecx
jb 0x40572f
push esi
push dword [ebx + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x40587e
mov ebx, dword [esp + 4]
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x18]
inc eax
cmp edx, eax
jae 0x4057a3
mov ecx, 1
test edx, edx
je 0x405773
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x405773
push esi
push dword [ebx + 0x1c]
push dword [ebx + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x40587e
mov ecx, dword [esp + 4]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], esi
mov esi, dword [ebp + 0x14]
test esi, esi
sete cl
xor eax, eax
or cl, byte [esp + 0x2c]
jne 0x4057cb
push 0x4df40
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x28]
add esp, 0xc
test eax, eax
je 0x4059f9
mov dword [esp + 8], eax
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov edx, ebx
mov esi, dword [esp + 0x4c]
push esi
push dword [esp + 0x10]
call fcn.00405fd0
add esp, 8
test eax, eax
je 0x4058e6
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add eax, esi
adc ecx, 0
add ebx, esi
mov dword [esp + 0x14], ebx
mov ebx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0xc]
adc edx, 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 dword [esp + 0x84], 0
mov word [esp + 0x88], 0
cmp byte [esp + 0x2c], 0
je 0x40588a
test edi, 0x400
jne 0x40588a
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
jmp 0x405898
mov dword [ebx + 0x1c], 0x10
jmp 0x4054c6
mov si, 8
mov dword [esp + 0x18], esi
mov al, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
je 0x405907
mov dword [esp + 0xc], edx
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov dword [esp + 4], 0
mov eax, 0xfffffffe
cmp eax, edi
mov edx, 0
sbb edx, esi
jb 0x405a08
xor edx, edx
cmp eax, ebx
sbb edx, ecx
jb 0x405a08
mov esi, ebx
xor eax, eax
mov edi, dword [ebp + 0x38]
mov ebx, dword [esp + 0x10]
jmp 0x405a62
push dword [esp + 8]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x4054c6
mov dword [edx + 0x1c], 0x18
jmp 0x4054c6
cmp dword [esp + 0x44], 0
jne 0x405de4
test edx, edx
jne 0x405de4
mov eax, ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x6c], 0x4034b50
mov edx, dword [esp + 0x10]
mov byte [esp + 0x70], dl
mov ebx, dword [esp + 0x94]
movzx edx, bx
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], dh
mov edx, dword [esp + 0x18]
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 + 0x28]
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 0x405bf4
mov edi, dword [esp + 0x14]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 0xc]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405be4
add edi, ebx
adc esi, 0
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
mov ebx, edi
jmp 0x405b5e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x4054c6
xor edx, edx
cmp eax, ebx
mov eax, 0
sbb eax, ecx
jb 0x405a19
xor eax, eax
jmp 0x405a1d
lea eax, [esp + 0x30]
mov ebx, dword [esp + 0x10]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, esi
mov edi, dword [ebp + 0x38]
jb 0x405a3b
mov esi, 0
jmp 0x405a3f
lea esi, [esp + 0x40]
jae 0x405a45
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa8]
mov dword [esp + 4], ecx
push eax
push esi
call fcn.00406070
add esp, 8
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x6c], 0x4034b50
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], 0
movzx edx, word [esp + 0x94]
mov byte [esp + 0x72], dl
mov byte [esp + 0x73], dh
mov dword [esp + 0x10], eax
lea edx, [eax + edi]
mov ebx, dword [esp + 0x18]
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 + 0x28]
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 esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x405bf4
mov edi, dword [esp + 0x14]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 0xc]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x405be4
add edi, ebx
adc esi, 0
cmp dword [esp + 4], 0
mov ebx, edi
je 0x405b56
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0x10]
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 0x405b8a
add ebx, edi
adc esi, 0
jmp 0x405b5e
mov dword [esp + 4], 0
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x405b99
push edi
push dword [ebp + 0x34]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x405b8a
add ebx, edi
mov dword [esp + 0x14], ebx
adc esi, 0
mov dword [esp + 0xc], esi
jmp 0x405ba1
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x4054c6
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ebx
cmp byte [esp + 0x2c], 0
je 0x405c00
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x14]
push dword [esp + 0x20]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405be4
mov eax, dword [ebp + 0x14]
add dword [esp + 0x14], eax
adc dword [esp + 0xc], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
jmp 0x405cc5
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 0x4054c6
cmp dword [ebp + 0x14], 0
je 0x405cc5
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x20]
mov ecx, eax
cmp eax, 0xa
jl 0x405c41
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x435d28]
test edx, edx
jne 0x405c60
or eax, 0x80000
lea ecx, [esp + 0x50]
push eax
push ecx
push 0x4060e0
mov esi, dword [esp + 0x14]
push esi
call fcn.00404530
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.00403060
add esp, 0x18
cmp eax, 1
jne 0x405dc4
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 + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], 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 + 0x38]
mov eax, dword [esp + 0x3c]
mov esi, ecx
mov dword [esp + 0x20], eax
or ecx, eax
je 0x405edd
mov dword [esp + 0x50], 0x8074b50
mov edx, dword [esp + 0x9c]
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 0x405de0
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 + 0x8c], 0x30
mov ecx, 0x28
mov dword [esp + 0x2c], 0x18
mov dword [esp + 8], 0x17
mov eax, dword [esp + 0x20]
mov edx, eax
mov byte [esp + 0x1f], al
mov dword [esp + 0x90], 0x16
mov dword [esp + 0xa0], 0x15
mov edi, 0x14
jmp 0x405e40
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 0x4054c6
test edx, edx
je 0x405df3
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x4054c6
mov dword [esp + 0x58], ecx
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x8c], 0x10
mov ecx, 8
mov dword [esp + 8], 0xf
mov dword [esp + 0x90], 0xe
mov edx, esi
mov byte [esp + 0x1f], dl
mov dword [esp + 0xa0], 0xd
mov edi, 0xc
mov dword [esp + 0x2c], 0x10
mov edx, esi
mov ebx, dword [esp + 0x20]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1f]
mov byte [esp + edi + 0x50], al
test cl, 0x20
jne 0x405e5b
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x20]
shrd edx, eax, cl
mov edi, dword [esp + 0xa0]
mov byte [esp + edi + 0x50], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x405e81
mov ebx, edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x90]
mov byte [esp + esi + 0x50], bl
shr eax, cl
test cl, 0x20
jne 0x405ea2
mov eax, edx
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x50], al
lea eax, [esp + 0x50]
mov esi, dword [esp + 0x2c]
push esi
push eax
push dword [esp + 0x14]
push dword [esp + 0x20]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4054c6
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], eax
adc dword [esp + 0xc], 0
cmp dword [esp + 4], 0
je 0x405f3c
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x30]
mov eax, 0
sbb eax, dword [esp + 0x34]
jb 0x405efe
xor eax, eax
jmp 0x405f02
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x38]
mov ecx, 0
sbb ecx, dword [esp + 0x3c]
jb 0x405f1d
mov edi, 0
jmp 0x405f21
lea edi, [esp + 0x40]
jae 0x405f27
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.00406070
add esp, 8
mov dword [esp + 0x10], eax
movzx ebx, word [esp + 0x94]
movzx esi, word [esp + 0x18]
movzx eax, word [esp + 0x10]
movzx edi, word [esp + 0x28]
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 + 0x40]
push dword [esp + 0x40]
push 0
push 0
push ebx
push esi
push dword [esp + 0xc0]
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.00406150
add esp, 0x4c
test eax, eax
je 0x4054c6
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x4054c8