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

Disassembly:
push 0xffffffffffffffff
push 0x697a43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x368
push ebx
push esi
mov esi, dword [esp + 0x39c]
push edi
mov ecx, esi
call fcn.004905d0
mov ecx, esi
call fcn.005758b0
lea ecx, [esp + 0x7c]
call fcn.00406c70
lea ecx, [esp + 0x80]
call fcn.00406c70
lea ecx, [esp + 0x84]
call fcn.00406c70
xor ebx, ebx
lea ecx, [esp + 0x90]
mov dword [esp + 0x37c], ebx
call fcn.00406c80
lea ecx, [esp + 0xcc]
mov dword [esp + 0x37c], 1
call fcn.004b0f30
lea ecx, [esp + 0x220]
mov byte [esp + 0x37c], 2
call fcn.004b0f30
mov esi, dword [esp + 0x38c]
mov byte [esp + 0x37c], 3
cmp esi, ebx
jl 0x406ba1
mov edi, dword [esp + 0x388]
cmp esi, dword [edi + 4]
jge 0x406ba1
push ebx
lea ecx, [esp + 0x80]
call fcn.005728d0
push ebx
lea ecx, [esp + 0x84]
call fcn.005728d0
push ebx
lea ecx, [esp + 0x88]
call fcn.005728d0
fld dword [esp + 0x398]
fmul dword [0x6c8ac4]
mov byte [esp + 0x88], bl
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xbc], 0xffffffff
mov byte [esp + 0x90], bl
fcom dword [0x6c8a88]
mov byte [esp + 0x98], bl
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x94], ebx
fnstsw ax
test ah, 1
jne 0x4060d9
fadd qword [0x6c8a90]
jmp 0x4060df
fsub qword [0x6c8a90]
call fcn.00658ed2
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x39c]
cmp ecx, ebx
lea eax, [eax + eax*8]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fsubr dword [esp + 0x398]
fld dword [esp + 0x398]
fsub st(1)
fcom dword [0x6c8a88]
fnstsw ax
je 0x406173
test ah, 1
fld st(0)
je 0x406122
fadd dword [0x6c8a80]
fsub dword [0x6c8a84]
fchs
fstp dword [esp + 0xc]
fcomp dword [0x6c8a88]
fnstsw ax
test ah, 0x40
jne 0x406169
fld dword [esp + 0xc]
fcomp dword [0x6c8a88]
mov byte [esp + 0x98], 2
fnstsw ax
test ah, 0x40
jne 0x40618b
mov edx, dword [esp + 0xc]
mov byte [esp + 0x98], 3
mov dword [esp + 0x9c], edx
jmp 0x40618b
mov byte [esp + 0x98], 4
jmp 0x40618b
test ah, 0x40
jne 0x406189
fstp dword [esp + 0x9c]
mov byte [esp + 0x98], 1
jmp 0x40618b
fstp st(0)
fcom dword [0x6c8a88]
fnstsw ax
test ah, 0x40
jne 0x4061c1
mov dl, byte [esp + 0x98]
fld dword [esp + 0x9c]
or dl, 1
cmp ecx, ebx
mov byte [esp + 0x98], dl
je 0x4061b8
fsub st(1)
jmp 0x4061ba
fadd st(1)
fstp dword [esp + 0x9c]
mov eax, dword [edi + 8]
push ebp
fstp st(0)
mov esi, dword [eax + esi*4]
mov ecx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0xd4]
call fcn.004b20c0
lea ecx, [esp + 0xd0]
call fcn.004b7d20
lea edx, [esp + 0x14]
lea ecx, [esp + 0xd0]
push edx
call fcn.00401f10
push str.151____151
mov ecx, eax
mov byte [esp + 0x384], 4
call fcn.00571ba0
test eax, eax
mov eax, dword [esp + 0x14]
mov ebp, dword [0x6c74ac]
sete bl
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, 0xffffffff
mov byte [esp + 0x380], 3
je 0x40623a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x40623a
push eax
call ebp
add esp, 4
mov edi, dword [esp + 0x388]
test bl, bl
je 0x40624b
push 0
push 0
jmp 0x40625f
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x14], ecx
mov eax, ecx
mov ecx, edx
push eax
mov dword [esp + 0x30], edx
push ecx
lea ecx, [esp + 0xd8]
call fcn.004b2c10
mov dl, byte [edi + 0x50]
push 0
mov byte [esp + 0x18], dl
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xd8]
call fcn.004b8220
test byte [esp + 0x9c], 2
je 0x40629b
lea ecx, [esp + 0xd0]
call fcn.004b9460
test byte [esp + 0x9c], 4
je 0x4062b1
lea ecx, [esp + 0xd0]
call fcn.004b9a50
test byte [esp + 0x9c], 1
je 0x4062cf
mov ecx, dword [esp + 0xa0]
push ecx
lea ecx, [esp + 0xd4]
call fcn.004b88b0
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x224]
push edx
call fcn.004b2150
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0xe0]
call fcn.004b3100
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
lea ecx, [esp + 0xd0]
push ecx
mov ecx, edi
fmul dword [0x6c8ac0]
fstp dword [esp + 0x2c]
fld dword [esp + 0x20]
fadd dword [esp + 0x14]
fmul dword [0x6c8ac0]
fstp dword [esp + 0x28]
call fcn.00493e40
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xe0]
call fcn.004b3100
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
mov eax, dword [edi + 0x10]
push 0
mov ecx, eax
lea edx, [esp + 0xd4]
fmul dword [0x6c8ac0]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x20], eax
fsubr dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x28]
fadd dword [esp + 0x1c]
fmul dword [0x6c8ac0]
fsubr dword [esp + 0x30]
fstp dword [esp + 0x30]
call fcn.004a21b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0xe0]
call fcn.004b3100
fld dword [esp + 0x398]
fsub dword [esp + 0x1c]
push ecx
fadd dword [esp + 0x28]
fstp dword [esp]
fld dword [esp + 0x398]
fsub dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x22c]
fadd dword [esp + 0x30]
fstp dword [esp]
call fcn.004bae00
lea ecx, [esp + 0x224]
push ecx
lea ecx, [esp + 0xd4]
call fcn.004b2150
lea ecx, [esp + 0x224]
call fcn.004b14e0
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xe0]
call fcn.004b3100
push esi
lea ecx, [esp + 0x84]
call fcn.00571160
lea eax, [esi + 4]
lea ecx, [esp + 0x84]
push eax
call fcn.00571160
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x8c]
call fcn.00403c10
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
mov dl, byte [esi + 0xc]
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], dl
mov eax, dword [esi + 0x10]
fmul dword [0x6c8ac0]
push ecx
lea ecx, [esp + 0xd4]
mov dword [esp + 0x94], eax
fstp dword [esp + 0xa8]
fld dword [esp + 0x20]
fadd dword [esp + 0x14]
fmul dword [0x6c8ac0]
fstp dword [esp + 0xac]
call fcn.00401f10
push str.151____151
mov ecx, eax
mov byte [esp + 0x384], 5
call fcn.00571ba0
mov edx, dword [esp + 0x14]
mov byte [esp + 0x380], 3
test eax, eax
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
sete bl
cmp ecx, 0xffffffff
je 0x4064e8
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x4064e8
push eax
call ebp
add esp, 4
test bl, bl
je 0x406add
lea eax, [esp + 0xcc]
lea ecx, [esp + 0xd0]
push eax
call fcn.00401f50
mov eax, dword [eax]
mov byte [esp + 0x380], 6
push eax
call dword [0x6c7498]
add esp, 4
mov ecx, edi
push eax
call fcn.004926a0
mov ecx, dword [esp + 0xcc]
mov ebx, eax
mov byte [esp + 0x380], 3
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x406549
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406549
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.00406c70
lea ecx, [esp + 0x40]
call fcn.00406c70
lea ecx, [esp + 0x44]
call fcn.00406c70
lea ecx, [esp + 0x68]
mov byte [esp + 0x380], 7
call fcn.00406c70
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x388], 8
call fcn.004b3480
mov eax, dword [ebx + 4]
xor ebp, ebp
test eax, eax
jle 0x4068c5
xor esi, esi
lea ecx, [esp + 0x3c]
push esi
call fcn.005728d0
push esi
lea ecx, [esp + 0x44]
call fcn.005728d0
push esi
lea ecx, [esp + 0x48]
call fcn.005728d0
mov byte [esp + 0x48], 0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x7c], 0xffffffff
mov byte [esp + 0x50], 0
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], esi
mov ecx, dword [ebx + 8]
mov esi, dword [ecx + ebp*4]
lea ecx, [esp + 0x3c]
push esi
call fcn.00571160
lea edx, [esi + 4]
lea ecx, [esp + 0x40]
push edx
call fcn.00571160
lea eax, [esi + 8]
lea ecx, [esp + 0x44]
push eax
call fcn.00571160
mov cl, byte [esi + 0xc]
lea eax, [esp + 0x3c]
mov byte [esp + 0x48], cl
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + 0xe0]
push eax
mov dword [esp + 0x50], edx
call fcn.004a62f0
mov dword [esp + 0x4c], eax
mov ecx, dword [ebx + 8]
mov esi, dword [ecx + ebp*4]
mov dl, byte [esi + 0x14]
mov byte [esp + 0x50], dl
mov al, byte [esi + 0x1c]
mov byte [esp + 0x58], al
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x5c], ecx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x60], edx
mov eax, dword [esi + 0x28]
mov dword [esp + 0x64], eax
mov ecx, dword [esi + 0x18]
lea edx, [esi + 0x2c]
mov dword [esp + 0x54], ecx
push edx
lea ecx, [esp + 0x6c]
call fcn.00571160
mov eax, dword [esi + 0x30]
mov dword [esp + 0x6c], eax
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x70], ecx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x74], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x78], eax
mov al, byte [esp + 0x9c]
test al, 2
mov byte [esp + 0x50], 0
mov dword [esp + 0x54], 0
je 0x4066f6
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
fld dword [esp + 0x24]
fsub dword [0x6c8abc]
push ecx
push eax
push ecx
lea edx, [esp + 0x70]
fstp dword [esp]
push eax
lea eax, [esp + 0x70]
push edx
push eax
call fcn.004aee80
mov cl, byte [esp + 0x70]
add esp, 0x18
test cl, 4
je 0x4066d5
and cl, 0xfb
jmp 0x4066d8
or cl, 4
fld dword [esp + 0x5c]
test cl, 1
je 0x4066e3
fchs
fadd dword [0x6c8a84]
or cl, 1
mov byte [esp + 0x58], cl
fst dword [esp + 0x5c]
jmp 0x4066fe
fld dword [esp + 0x5c]
mov cl, byte [esp + 0x58]
test byte [esp + 0x9c], 4
je 0x406762
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
fstp st(0)
fld dword [esp + 0x28]
fsub dword [0x6c8abc]
push eax
push ecx
push eax
push ecx
lea edx, [esp + 0x74]
lea eax, [esp + 0x70]
fstp dword [esp]
push edx
push eax
call fcn.004aee80
mov cl, byte [esp + 0x70]
add esp, 0x18
test cl, 2
je 0x406743
and cl, 0xfd
jmp 0x406746
or cl, 2
fld dword [esp + 0x5c]
test cl, 1
je 0x406751
fchs
fadd dword [0x6c8a84]
or cl, 1
mov byte [esp + 0x58], cl
fst dword [esp + 0x5c]
test byte [esp + 0x9c], 1
je 0x40684a
mov ecx, dword [esp + 0x4c]
push ecx
lea ecx, [esp + 0xd4]
fstp st(0)
call fcn.004b20c0
mov edx, dword [edi + 0x28]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x38], edx
mov ecx, edx
mov edx, eax
push ecx
push edx
lea ecx, [esp + 0xd8]
mov dword [esp + 0x38], eax
call fcn.004b2c10
mov al, byte [edi + 0x50]
lea ecx, [esp + 0x50]
mov byte [esp + 0x34], al
push ecx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0xd4]
push edx
call fcn.004b7c70
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xa0]
push eax
push ecx
push edx
lea ecx, [esp + 0xdc]
call fcn.004b8d10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0xe0]
call fcn.004b3100
mov cl, byte [esp + 0x58]
test cl, 1
je 0x406814
fld dword [esp + 0x5c]
fadd dword [esp + 0xa0]
jmp 0x406822
fld dword [esp + 0xa0]
or cl, 1
mov byte [esp + 0x58], cl
fst dword [esp + 0x5c]
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
fmul dword [0x6c8ac0]
fstp dword [esp + 0x60]
fld dword [esp + 0x1c]
fadd dword [esp + 0x10]
fmul dword [0x6c8ac0]
fstp dword [esp + 0x64]
fcom dword [0x6c8a80]
fnstsw ax
test ah, 0x41
jne 0x40686e
fsub dword [0x6c8a80]
fcom dword [0x6c8a80]
fnstsw ax
test ah, 0x41
je 0x406857
fst dword [esp + 0x5c]
fcom dword [0x6c8ab8]
fnstsw ax
test ah, 1
je 0x406892
fadd dword [0x6c8a80]
fcom dword [0x6c8ab8]
fnstsw ax
test ah, 1
jne 0x40687b
fst dword [esp + 0x5c]
fcomp dword [0x6c8a88]
fnstsw ax
test ah, 0x40
je 0x4068a6
and cl, 0xfe
mov byte [esp + 0x58], cl
lea ecx, [esp + 0x3c]
push 1
push ecx
mov ecx, dword [esp + 0x3ac]
call fcn.00490610
mov eax, dword [ebx + 4]
inc ebp
cmp ebp, eax
jl 0x40659c
mov ebx, dword [esp + 0x3a4]
xor esi, esi
mov eax, dword [ebx + 4]
test eax, eax
jle 0x4069f4
mov edx, dword [ebx + 8]
lea ecx, [esp + 0xd0]
mov eax, dword [edx + esi*4]
mov eax, dword [eax + 0x10]
push eax
call fcn.004b20c0
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x34], ecx
mov eax, ecx
mov ecx, edx
push eax
push ecx
lea ecx, [esp + 0xd8]
mov dword [esp + 0x38], edx
call fcn.004b2c10
mov edx, dword [ebx + 8]
mov cl, byte [edi + 0x50]
mov byte [esp + 0x38], cl
lea ecx, [esp + 0xd0]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x38]
add eax, 0x14
push eax
push edx
call fcn.004b7c70
test esi, esi
jne 0x40695a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0xe0]
call fcn.004b3100
jmp 0x4069e8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0xc8]
push edx
lea ecx, [esp + 0xd0]
push eax
push ecx
lea ecx, [esp + 0xe0]
call fcn.004b3100
fld dword [esp + 0xc8]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x40699d
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x18], edx
fld dword [esp + 0xc4]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4069ba
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x2c]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4069d1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x14]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4069e8
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 4]
inc esi
cmp esi, eax
jl 0x4068d9
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
fmul dword [0x6c8ac0]
fsubr dword [esp + 0xa4]
fstp dword [esp + 0x28]
fld dword [esp + 0x1c]
fadd dword [esp + 0x10]
fmul dword [0x6c8ac0]
fsubr dword [esp + 0xa8]
fstp dword [esp + 0x24]
jle 0x406a5e
mov edx, dword [esp + 0x3a4]
inc eax
fld dword [esp + 0x28]
mov ecx, dword [edx + 8]
mov ecx, dword [ecx + eax*4 - 4]
fadd dword [ecx + 0x24]
fstp dword [ecx + 0x24]
mov ecx, dword [edx + 8]
fld dword [esp + 0x24]
mov ecx, dword [ecx + eax*4 - 4]
fadd dword [ecx + 0x28]
fstp dword [ecx + 0x28]
cmp eax, dword [edx + 4]
jl 0x406a2f
mov edx, dword [esp + 0x68]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x406a82
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406a82
mov esi, dword [0x6c74ac]
push eax
call esi
add esp, 4
jmp 0x406a88
mov esi, dword [0x6c74ac]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406aa3
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406aa3
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x40]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x406abf
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406abf
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x406af9
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406af9
push eax
call esi
add esp, 4
jmp 0x406af9
mov ecx, dword [esp + 0x3a4]
lea eax, [esp + 0x80]
push 1
push eax
call fcn.00490610
mov esi, dword [0x6c74ac]
lea ecx, [esp + 0x224]
mov byte [esp + 0x380], 2
call fcn.004b1310
lea ecx, [esp + 0xd0]
mov byte [esp + 0x380], 1
call fcn.004b1310
mov ecx, dword [esp + 0xac]
pop ebp
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x406b41
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406b41
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x84]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x406b60
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406b60
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x80]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406b7e
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406b7e
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x406b9a
dec ecx
test ecx, ecx
mov dword [eax], ecx
jne 0x406b9a
push eax
call esi
add esp, 4
mov al, 1
jmp 0x406c49
lea ecx, [esp + 0x220]
mov byte [esp + 0x37c], 2
call fcn.004b1310
lea ecx, [esp + 0xcc]
mov byte [esp + 0x37c], 1
call fcn.004b1310
mov edx, dword [esp + 0xa8]
mov esi, dword [0x6c74ac]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x406bee
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x406bee
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x84]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406c0c
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x406c0c
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x80]
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x406c2b
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x406c2b
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x7c]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x406c47
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x406c47
push eax
call esi
add esp, 4
xor al, al
mov ecx, dword [esp + 0x374]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x374
ret 0x20