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

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx]
push ebp
mov ebp, dword [eax]
mov eax, dword [ebx + 4]
push esi
mov esi, dword [ecx + 0xac]
sar esi, 3
mov dword [esp + 0x7c], esi
fild dword [esp + 0x7c]
push edi
mov edi, dword [ecx + 0xb0]
mov dword [esp + 0x60], edx
fmul dword [esp + 0x60]
mov edx, dword [ebx + 0x54]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x4c]
sar edi, 3
fstp dword [esp + 0x44]
mov dword [esp + 0x6c], edi
fild dword [esp + 0x6c]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x58], ecx
fmul dword [esp + 0x58]
mov ecx, dword [ebx + 0x50]
test ecx, ecx
mov dword [esp + 0x68], ecx
fstp dword [esp + 0x54]
mov dword [esp + 0x64], edx
jge 0x3c22da
neg ecx
test edx, edx
mov dword [esp + 0x5c], ecx
jge 0x3c22e4
neg edx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x3c], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x90]
mov dword [esp + 0x4c], edx
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [eax + 0x284]
mov dword [esp + 0x9c], edx
mov edx, dword [ebx + 0x94]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x288]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 0x280]
mov eax, dword [eax + 0x28c]
add ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
cmp eax, edx
jge 0x3c2387
mov ecx, edx
fnstcw word [esp + 0x12]
sub ecx, eax
movzx eax, word [esp + 0x12]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
or ah, 0xc
fild dword [esp + 0x18]
mov dword [esp + 0x4c], edx
fdiv dword [esp + 0x60]
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x88]
fldcw word [esp + 0x12]
jmp 0x3c2392
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x40]
cmp eax, ecx
jge 0x3c23d1
sub ecx, eax
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
mov dword [esp + 0x18], ecx
or ah, 0xc
fild dword [esp + 0x18]
fdiv dword [esp + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x98]
fldcw word [esp + 0x12]
jmp 0x3c23dc
mov dword [esp + 0x98], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x110]
add eax, dword [esp + 0x4c]
imul eax, esi
mov dword [esp + 0xa0], eax
mov eax, dword [ecx + 0x114]
add eax, dword [esp + 0x40]
imul eax, edi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x3c2479
test al, 4
mov dword [esp + 0x90], 1
je 0x3c2484
mov ecx, dword [ecx + 0x110]
mov eax, dword [ebx + 0x58]
add eax, ecx
imul eax, esi
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x114]
mov eax, dword [ebx + 0x5c]
add eax, ecx
mov ecx, dword [esp + 0x20]
imul eax, edi
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x60]
add eax, dword [ecx + 0x110]
imul eax, esi
mov dword [esp + 0xc8], eax
mov eax, dword [ebx + 0x64]
add eax, dword [ecx + 0x114]
imul eax, edi
mov dword [esp + 0xc0], eax
jmp 0x3c2484
mov dword [esp + 0x90], 0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x15c]
add esi, 0x58
cmp eax, edx
mov ecx, 0x22
lea edi, [esp + 0xcc]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x68]
jge 0x3c24fb
test esi, esi
jle 0x3c2e5e
fild dword [esp + 0x164]
mov ecx, edx
sub ecx, eax
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
mov dword [esp + 0x30], ecx
sub dword [esp + 0x5c], ecx
or ah, 0xc
fild dword [esp + 0x30]
sub esi, ecx
mov dword [esp + 0x68], esi
fdiv dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, edx
mov dword [esp + 0x15c], eax
fsubp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x164]
fldcw word [esp + 0x12]
lea edx, [esi + eax]
cmp edx, dword [esp + 0x50]
jle 0x3c2544
mov ecx, dword [esp + 0x50]
fild dword [esp + 0x164]
sub ecx, eax
fnstcw word [esp + 0x12]
sub esi, ecx
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
movzx eax, word [esp + 0x12]
or ah, 0xc
mov dword [esp + 0x5c], ecx
fdiv dword [esp + 0x60]
mov dword [esp + 0x18], eax
fsubp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x164]
fldcw word [esp + 0x12]
mov eax, dword [esp + 0x160]
cmp eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
jge 0x3c25ac
test edx, edx
jle 0x3c2e5e
mov esi, dword [esp + 0x1c]
fild dword [esp + 0x168]
mov ecx, esi
fnstcw word [esp + 0x12]
sub ecx, eax
movzx eax, word [esp + 0x12]
mov dword [esp + 0x30], ecx
sub dword [esp + 0x3c], ecx
or ah, 0xc
fild dword [esp + 0x30]
sub edx, ecx
mov dword [esp + 0x64], edx
fdiv dword [esp + 0x58]
mov dword [esp + 0x18], eax
mov eax, esi
mov dword [esp + 0x160], eax
fsubp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x168]
fldcw word [esp + 0x12]
lea ecx, [edx + eax]
cmp ecx, dword [esp + 0x2c]
jle 0x3c25f5
mov ecx, dword [esp + 0x2c]
fild dword [esp + 0x168]
sub ecx, eax
fnstcw word [esp + 0x12]
sub edx, ecx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
movzx eax, word [esp + 0x12]
or ah, 0xc
mov dword [esp + 0x3c], ecx
fdiv dword [esp + 0x58]
mov dword [esp + 0x18], eax
fsubp st(1)
fldcw word [esp + 0x18]
fistp dword [esp + 0x168]
fldcw word [esp + 0x12]
cmp dword [esp + 0x164], 0
jle 0x3c2e5e
cmp dword [esp + 0x168], 0
jle 0x3c2e5e
mov byte [ebp + 0x3c], 1
mov byte [ebp + 0x3d], 0
mov eax, dword [ebx + 0x80]
cmp eax, 0x1503
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0x84]
mov esi, dword [edx]
mov edi, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], ecx
jne 0x3c268b
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0xa8]
sub edx, 1
je 0x3c267b
sub edx, 1
je 0x3c2662
cmp ecx, 0xffffffff
jne 0x3c268b
mov edi, 3
mov dword [esp + 0x30], edi
jmp 0x3c26db
and ecx, 0xffff
cmp ecx, 0xffff
jne 0x3c268b
mov edi, 3
mov dword [esp + 0x30], edi
jmp 0x3c26db
cmp cl, 0xff
jne 0x3c268b
mov edi, 3
mov dword [esp + 0x30], edi
jmp 0x3c26db
push eax
call fcn.003afce0
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xa0]
sub eax, 2
add esp, 4
neg eax
sbb eax, eax
mov dword [esi], 0x462a0
mov dword [esi + 8], 0x462e8
and eax, 2
mov dword [esi + 0xc], eax
add esi, 0x10
or eax, 0xffffffff
mov dword [esi], 0x1062f0
mov dword [esi + 4], 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
add esi, 0x14
mov dword [esi], 0x462ac
mov dword [esi + 4], edi
mov edx, dword [ebp + 8]
add esi, 8
mov dword [edx], esi
mov eax, dword [ebp + 8]
cmp esi, dword [eax + 4]
jb 0x3c26ff
push 0
xor edx, edx
mov ecx, ebp
call fcn.003bfc90
mov ecx, dword [ebx]
cmp dword [ecx + 0x14], 0
jne 0x3c2725
mov edx, dword [ebx + 0x10]
cmp dword [edx + 8], 0
je 0x3c2725
mov ebx, edx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea eax, [eax + ecx + 1]
shl eax, 4
add eax, ebx
mov ebx, dword [ebx + 8]
jmp 0x3c272d
mov ebx, dword [ebx + 0x10]
lea eax, [ebx + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
mov byte [esp + 0x78], 1
jbe 0x3c2dfe
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x50]
mov edi, dword [edx]
mov ecx, dword [edx + 4]
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edx
sub eax, edi
sub edx, ecx
test eax, eax
mov dword [esp + 0xa8], ecx
jle 0x3c2dee
test edx, edx
jle 0x3c2dee
cmp dword [esp + 0x74], 0
jne 0x3c28ae
mov ebx, dword [esp + 0x15c]
cmp edi, ebx
mov esi, edi
jg 0x3c2794
mov esi, ebx
mov ecx, dword [esp + 0x160]
cmp dword [esp + 0xa8], ecx
jle 0x3c27ab
mov ecx, dword [esp + 0xa8]
add eax, edi
mov edi, dword [esp + 0x164]
add edi, ebx
cmp eax, edi
jl 0x3c27bc
mov eax, edi
mov edi, dword [esp + 0x160]
sub eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa8]
add eax, edx
mov edx, dword [esp + 0x168]
add edx, edi
cmp eax, edx
jl 0x3c27e1
mov eax, edx
sub eax, ecx
fnstcw word [esp + 0x12]
mov dword [esp + 0x2c], eax
mov eax, esi
sub eax, dword [esp + 0x4c]
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x12]
fild dword [esp + 0x38]
or ah, 0xc
mov dword [esp + 0x7c], ecx
fmul dword [esp + 0x44]
fiadd dword [esp + 0xa0]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fldcw word [esp + 0x12]
fild dword [esp + 0x7c]
fnstcw word [esp + 0x12]
fmul dword [esp + 0x54]
movzx eax, word [esp + 0x12]
or ah, 0xc
fiadd dword [esp + 0x84]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
fldcw word [esp + 0x12]
fild dword [esp + 0x34]
fnstcw word [esp + 0x12]
fmul dword [esp + 0x44]
movzx eax, word [esp + 0x12]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov edi, ebx
fldcw word [esp + 0x12]
fild dword [esp + 0x2c]
fnstcw word [esp + 0x12]
fmul dword [esp + 0x54]
movzx eax, word [esp + 0x12]
or ah, 0xc
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x70]
mov esi, dword [esp + 0x70]
fldcw word [esp + 0x12]
jmp 0x3c2ab8
fld dword [esp + 0x44]
mov eax, dword [esp + 0x164]
fcomp dword [0x41bc54]
mov ecx, dword [esp + 0x168]
fld dword [esp + 0x44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
fnstsw ax
test ah, 5
jp 0x3c28db
fchs
mov eax, dword [esp + 0x15c]
fnstcw word [esp + 0x12]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x12]
or ah, 0xc
fst dword [esp + 0x24]
fmul st(1)
fiadd dword [esp + 0xa0]
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x28]
fstp st(0)
fldcw word [esp + 0x12]
fld dword [esp + 0x54]
fcomp dword [0x41bc54]
fld dword [esp + 0x54]
fnstsw ax
test ah, 5
jp 0x3c2934
fchs
mov eax, dword [esp + 0x160]
fnstcw word [esp + 0x12]
sub eax, dword [esp + 0x40]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x7c], eax
movzx eax, word [esp + 0x12]
or ah, 0xc
fst dword [esp + 0x14]
mov esi, dword [esp + 0x80]
fmul st(1)
mov ebx, edx
imul ebx, esi
fiadd dword [esp + 0x84]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
imul eax, dword [esp + 0x6c]
fldcw word [esp + 0x48]
fistp dword [esp + 0x48]
mov dword [esp + 0x70], eax
mov dword [esp + 0x1c], ebx
fstp st(0)
fldcw word [esp + 0x12]
fld dword [esp + 0x24]
fmul dword [esp + 0x60]
fnstcw word [esp + 0x12]
fiadd dword [esp + 0x4c]
movzx eax, word [esp + 0x12]
or ah, 0xc
cmp dword [esp + 0x68], 0
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fldcw word [esp + 0x12]
jge 0x3c29cc
sub ecx, edx
lea eax, [ecx + edx]
mov edx, dword [esp + 0xac]
cmp edx, eax
jge 0x3c29dc
mov eax, edx
cmp edi, ecx
jle 0x3c29e2
mov ecx, edi
fld dword [esp + 0x14]
sub eax, ecx
fmul dword [esp + 0x58]
imul eax, esi
fnstcw word [esp + 0x12]
fiadd dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0x110]
mov edi, eax
movzx eax, word [esp + 0x12]
or ah, 0xc
add edx, ecx
imul edx, esi
cmp dword [esp + 0x64], 0
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
fldcw word [esp + 0x12]
jge 0x3c2a2f
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0xb0]
add ecx, eax
cmp esi, ecx
jl 0x3c2a42
mov esi, ecx
mov ecx, dword [esp + 0xa8]
cmp ecx, eax
jle 0x3c2a4f
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x114]
sub esi, eax
imul esi, dword [esp + 0x6c]
add ecx, eax
imul ecx, dword [esp + 0x6c]
test byte [esp + 0x74], 4
je 0x3c2ab8
mov eax, dword [esp + 0xb4]
cmp edx, eax
jge 0x3c2a7f
sub edx, eax
add edi, edx
mov edx, eax
mov eax, dword [esp + 0xc4]
cmp ecx, eax
jge 0x3c2a90
sub ecx, eax
add esi, ecx
mov ecx, eax
mov eax, dword [esp + 0xc8]
lea ebx, [edx + edi]
cmp ebx, eax
jle 0x3c2aa2
mov edi, eax
sub edi, edx
mov eax, dword [esp + 0xc0]
lea ebx, [ecx + esi]
cmp ebx, eax
mov ebx, dword [esp + 0x1c]
jle 0x3c2ab8
mov esi, eax
sub esi, ecx
test edi, edi
jle 0x3c2dee
test esi, esi
jle 0x3c2dee
cmp dword [esp + 0x9c], 4
mov eax, dword [esp + 0x34]
jne 0x3c2ae0
mov dword [esp + 0x14], 2
jmp 0x3c2aed
add eax, 1
mov dword [esp + 0x14], 1
sar eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax], 0x146280
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 1
mov ecx, dword [ebp + 8]
add eax, 0x18
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
jb 0x3c2b2a
push 0
xor edx, edx
mov ecx, ebp
call fcn.003bfc90
cmp dword [esp + 0x90], 0
jne 0x3c2b5e
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x2c]
push 0
push ecx
push ebx
push edx
push eax
lea ecx, [esp + 0xe4]
push ecx
push ebp
call fcn.003c2220
add esp, 0x20
jmp 0x3c2bda
fld dword [esp + 0x44]
mov edx, dword [esp + 0x78]
fmul dword [0x41bf94]
push edx
mov edx, dword [esp + 0x74]
push 0
fadd dword [0x41c20c]
fstp dword [esp + 0xc4]
fld dword [esp + 0x5c]
mov ecx, dword [esp + 0xc4]
fmul dword [0x41bf94]
and ecx, 0x7fffff
sub ecx, str.Xqv
fadd dword [0x41c20c]
fstp dword [esp + 0xc0]
mov eax, dword [esp + 0xc0]
and eax, 0x7fffff
sub eax, str.Xqv
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push ebx
push eax
push ecx
lea edx, [esp + 0xec]
push edx
push ebp
call fcn.003c0fa0
add esp, 0x28
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x88]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x38]
imul eax, dword [ecx + 0x44]
add edx, edi
imul edx, dword [ecx + 0x40]
add eax, edx
add eax, dword [ecx + 0x88]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov byte [esp + 0x78], 0
mov dword [esp + 0x38], eax
jle 0x3c2dee
mov eax, 2
sub eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
jmp 0x3c2c40
mov edi, dword [esp + 0x34]
cmp edi, 0x712
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], edi
jb 0x3c2d34
mov ecx, dword [esp + 0x24]
mov eax, 0x712
shl eax, cl
mov dword [esp + 0x28], eax
mov eax, 0x90d4b86f
mul edi
shr edx, 0xa
mov dword [esp + 0x14], edx
jmp 0x3c2c80
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x1c4c]
cmp ecx, dword [eax + 4]
jb 0x3c2ca3
push 0
mov edx, 0x713
mov ecx, ebp
mov dword [eax], esi
call fcn.003bfc90
mov edx, dword [ebp + 8]
mov esi, dword [edx]
mov dword [esi], 0x5c486860
add esi, 4
cmp dword [esp + 0x8c], 0
je 0x3c2cdd
mov eax, dword [0x3fa0b8]
mov ecx, dword [ebp + eax*4 + 0x12954]
mov edx, dword [ebp + 0x12518]
push ecx
push edx
push 6
push 0x1c48
push ebx
push esi
call fcn.003f0800
add esp, 0x18
jmp 0x3c2cff
mov eax, dword [esp + 0x158]
mov ecx, dword [eax + 0x48]
imul ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x94]
push ecx
push esi
push ebx
push edx
call fcn.003ed800
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x158]
sub dword [esp + 0x1c], 0x712
add esi, 0x1c48
mov dword [eax], esi
mov edx, dword [ecx + 0x40]
imul edx, dword [esp + 0x28]
sub edi, 0x712
add ebx, edx
sub dword [esp + 0x14], 1
jne 0x3c2c80
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
shl eax, cl
lea ecx, [esi + edi*4 + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x3c2d61
push 0
lea edx, [edi + 1]
mov ecx, ebp
mov dword [eax], esi
call fcn.003bfc90
mov edx, dword [ebp + 8]
mov esi, dword [edx]
shl edi, 0x12
or edi, 0x40006860
mov dword [esi], edi
add esi, 4
cmp dword [esp + 0x8c], 0
je 0x3c2da7
mov eax, dword [0x3fa0b8]
mov ecx, dword [ebp + eax*4 + 0x12954]
mov edx, dword [ebp + 0x12518]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 6
lea ecx, [eax*4]
push ecx
push ebx
push esi
call fcn.003f0800
add esp, 0x18
jmp 0x3c2dc9
mov edx, dword [esp + 0x158]
mov eax, dword [edx + 0x48]
imul eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x94]
push eax
push esi
push ebx
push ecx
call fcn.003ed800
add esp, 0x10
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x158]
lea esi, [esi + edx*4]
mov dword [eax], esi
mov edx, dword [ecx + 0x44]
add dword [esp + 0x38], edx
sub dword [esp + 0x2c], 1
jne 0x3c2c40
add dword [esp + 0x50], 0x10
sub dword [esp + 0x18], 1
jne 0x3c2742
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [eax], 0x46290
mov dword [eax + 4], 0
mov ecx, 3
add eax, 8
cmp dword [esp + 0x30], ecx
je 0x3c2e2a
mov dword [eax], 0x462ac
mov dword [eax + 4], ecx
add eax, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
jb 0x3c2e42
push 0
xor edx, edx
mov ecx, ebp
call fcn.003bfc90
cmp byte [ebp + 0x3d], 1
mov byte [ebp + 0x3c], 0
jne 0x3c2e5e
mov eax, dword [ebp + 0x11cc4]
push 0
push eax
call fcn.003c0490
mov byte [ebp + 0x3d], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret