Function at 0x4c2170
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52b080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 0xffffffffffffffff
lea ecx, [edi + 0x190c]
push esi
mov dword [esp + 0xac], edi
mov dword [edi + 0x1908], esi
mov dword [esp + 0x2c], ecx
call fcn.00455170
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
cmp eax, esi
jne 0x4c22eb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0xc88], esi
mov dword [edi + 0xc90], eax
mov dword [edi + 0xc8c], esi
mov dword [edi + 0xc94], ecx
mov eax, dword [edi + 0xc88]
lea edx, [edi + 8]
mov ecx, esi
mov dword [edi + 0xc98], esi
mov dword [edx], eax
mov eax, dword [edi + 0xc90]
mov dword [edi + 0xca0], esi
mov dword [edi + 0xc9c], esi
mov dword [edx + 4], ecx
mov ecx, dword [edi + 0xc94]
mov dword [edi + 0xca4], esi
mov dword [edi + 0xca8], esi
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc98]
mov dword [edi + 0xcb0], esi
mov dword [edi + 0x30], esi
mov dword [edx + 0xc], ecx
lea edx, [edi + 0x18]
mov ecx, esi
mov dword [edi + 0xcac], 0x3ff00000
mov dword [edx], eax
mov eax, dword [edi + 0xca0]
mov dword [edi + 0xcb4], esi
mov dword [edi + 0x34], esi
mov dword [edx + 4], ecx
push 0xffffffffffffffff
push esi
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0x14]
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], eax
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.00455170
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
push ecx
push 0xbff00000
push esi
push 0xbff00000
push esi
lea ecx, [esp + 0x1c0]
call fcn.00487fc0
mov eax, dword [edi + 8]
lea edx, [esp + 0x1a0]
push edx
push eax
mov ecx, edi
mov dword [esp + 0x1d0], esi
call fcn.00436670
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.00519440
fld qword [0x531cf0]
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp eax, esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x20], esi
jle 0x4c235e
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x20]
mov ecx, dword [eax + ecx*4]
call fcn.00498b90
mov ecx, eax
fld qword [ecx + 0x10]
fcomp qword [esp + 0x4c]
fnstsw ax
test ah, 0x41
jne 0x4c2339
fld qword [ecx + 0x10]
fstp qword [esp + 0x4c]
fld qword [ecx + 0x18]
fcomp qword [esp + 0x5c]
fnstsw ax
test ah, 0x41
jne 0x4c234e
fld qword [ecx + 0x18]
fstp qword [esp + 0x5c]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4c2313
fld qword [esp + 0x4c]
fadd qword [0x531cf8]
mov eax, 0x53b01c
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
fstp qword [esp + 0x4c]
fld qword [esp + 0x5c]
fadd qword [0x531cf8]
fstp qword [esp + 0x5c]
mov dword [esp + 0x1c8], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc8], 0x534208
mov dword [esp + 0x190], 0x47ae147b
mov dword [esp + 0x194], 0x3f847ae1
mov dword [esp + 0x198], 0xd2f1a9fc
mov dword [esp + 0x19c], 0x3f50624d
mov dword [esp + 0x160], esi
mov dword [esp + 0x170], 0xd2f1a9fc
mov dword [esp + 0x174], 0xbf50624d
mov dword [esp + 0x178], 0x9374bc6a
mov dword [esp + 0x17c], 0x3ff00418
mov dword [esp + 0x180], 0xd2f1a9fc
mov dword [esp + 0x184], 0x3f50624d
mov dword [esp + 0x188], 0xd916872b
mov dword [esp + 0x18c], 0x3feff7ce
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1c8], 3
call fcn.00488210
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0x3f847ae1
push 0x47ae147b
push 0xbff00000
push esi
push 0x3f847ae1
push 0x47ae147b
push ecx
push edx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1e8], 4
call fcn.00488a90
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x70]
call fcn.004c4b80
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
mov dword [esp + 0x28], eax
inc eax
push eax
lea ecx, [esp + 0x38]
call fcn.004c4110
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
shl eax, 4
add eax, ecx
mov dword [eax], edx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc], ecx
fld qword [esp + 0x84]
fcomp qword [esp + 0x5c]
fnstsw ax
test ah, 1
je 0x4c28ef
jmp 0x4c2519
xor esi, esi
or eax, 0xffffffff
mov dword [esp + 0x54], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x58], 0x40000000
test eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
jle 0x4c28ca
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*4]
call fcn.00498b90
push eax
lea ecx, [esp + 0xac]
call fcn.00487fa0
mov eax, dword [ebx + 4]
mov byte [esp + 0x1c8], 5
mov ecx, dword [eax + esi*4]
lea eax, [eax + esi*4]
mov edx, dword [ecx + 0x1b0]
mov ecx, dword [ecx + 0x1b4]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
mov edx, dword [eax]
mov eax, dword [edx + 0x1b8]
mov ecx, dword [edx + 0x1bc]
mov dword [esp + 0xc0], eax
lea edx, [esp + 0x7c]
lea eax, [esp + 0xa8]
mov dword [esp + 0xc4], ecx
push edx
push eax
lea ecx, [esp + 0xd0]
call fcn.00489260
test eax, eax
je 0x4c26c5
fld qword [esp + 0xd0]
fcomp qword [esp + 0xd8]
fnstsw ax
test ah, 1
je 0x4c2602
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], edx
jmp 0x4c261e
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
fld qword [esp + 0xd0]
fcomp qword [esp + 0xd8]
fnstsw ax
test ah, 0x41
jne 0x4c2651
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], eax
jmp 0x4c266d
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0xdc]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
fld qword [esp + 0x54]
fcomp qword [esp + 0xe0]
fnstsw ax
test ah, 0x41
jne 0x4c2699
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
fld qword [esp + 0x44]
fcomp qword [esp + 0xe8]
fnstsw ax
test ah, 1
je 0x4c26c5
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xec]
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1c8], 4
call fcn.00519440
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jl 0x4c254f
cmp dword [esp + 0x20], 0xffffffff
je 0x4c27d9
fld qword [esp + 0x94]
fmul qword [esp + 0x54]
mov esi, dword [esp + 0x70]
push 0xffffffffffffffff
fadd qword [esp + 0x80]
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x70]
fstp qword [esp + 0x18]
fld qword [esp + 0xa4]
fmul qword [esp + 0x5c]
fadd qword [esp + 0x8c]
fstp qword [esp + 0x20]
call fcn.004c4110
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x10]
shl esi, 4
add esi, ecx
mov dword [esi], edx
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x20]
mov edx, eax
lea ecx, [eax + esi*4]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + esi*4]
call fcn.00498ba0
fld qword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
fsub qword [edx + 0x1b0]
fadd qword [ecx + 0x10]
fstp qword [esp + 0x10]
mov ecx, dword [eax]
call fcn.00498ba0
mov ecx, dword [ebx + 4]
push 0xffffffffffffffff
fld qword [esp + 0x1c]
mov edx, dword [ecx + esi*4]
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x34]
fsub qword [edx + 0x1b8]
fadd qword [eax + 0x18]
lea eax, [esi + 1]
push eax
fstp qword [esp + 0x20]
call fcn.004c4110
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
shl esi, 4
add esi, eax
mov dword [esi], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc], ecx
cmp dword [esp + 0x24], 0xffffffff
je 0x4c28ca
fld qword [esp + 0x94]
fmul qword [esp + 0x44]
mov esi, dword [esp + 0x70]
push 0xffffffffffffffff
lea ecx, [esp + 0x6c]
fadd qword [esp + 0x80]
lea edx, [esi + 1]
push edx
fstp qword [esp + 0x18]
fld qword [esp + 0xa4]
fmul qword [esp + 0x4c]
fadd qword [esp + 0x8c]
fstp qword [esp + 0x20]
call fcn.004c4110
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
shl esi, 4
add esi, ecx
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x24]
fld qword [esp + 0x10]
mov ecx, dword [ecx + esi*4]
fadd qword [ecx + 0x1b0]
fstp qword [esp + 0x24]
call fcn.00498ba0
fld qword [esp + 0x24]
fsub qword [eax + 0x10]
mov edx, dword [ebx + 4]
fstp qword [esp + 0x10]
mov ecx, dword [edx + esi*4]
fld qword [esp + 0x18]
fadd qword [ecx + 0x1b8]
fstp qword [esp + 0x24]
call fcn.00498ba0
fld qword [esp + 0x24]
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
fsub qword [eax + 0x18]
lea eax, [esi + 1]
lea ecx, [esp + 0x34]
push eax
fstp qword [esp + 0x20]
call fcn.004c4110
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
shl esi, 4
add esi, eax
mov dword [esi], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc], ecx
fld qword [esp + 0x84]
fadd qword [0x534230]
fst qword [esp + 0x84]
fcomp qword [esp + 0x5c]
fnstsw ax
test ah, 1
jne 0x4c2517
xor esi, esi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
fld qword [esp + 0x5c]
fadd qword [0x531798]
push 0xbff00000
push esi
push eax
push ecx
sub esp, 8
fstp qword [esp]
push eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.00488a90
fld qword [esp + 0x7c]
fcomp qword [0x5317a0]
fnstsw ax
test ah, 0x41
jne 0x4c2e17
jmp 0x4c2936
xor esi, esi
or eax, 0xffffffff
mov dword [esp + 0x44], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x48], 0x40000000
test eax, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
jle 0x4c2df6
mov edx, dword [ebx + 4]
mov ecx, dword [edx + esi*4]
call fcn.00498b90
push eax
lea ecx, [esp + 0xac]
call fcn.00487fa0
mov eax, dword [ebx + 4]
mov byte [esp + 0x1c8], 6
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx + 0x1b8]
mov eax, dword [ecx + 0x1bc]
mov dword [esp + 0xc0], edx
lea ecx, [esp + 0x7c]
lea edx, [esp + 0xa8]
push ecx
push edx
lea ecx, [esp + 0xd0]
mov dword [esp + 0xcc], eax
call fcn.00489260
test eax, eax
je 0x4c2ac3
fld qword [esp + 0xd0]
fcomp qword [esp + 0xd8]
fnstsw ax
test ah, 1
je 0x4c2a00
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
jmp 0x4c2a1c
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
fld qword [esp + 0xd0]
fcomp qword [esp + 0xd8]
fnstsw ax
test ah, 0x41
jne 0x4c2a4f
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
jmp 0x4c2a6b
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ecx
fld qword [esp + 0x44]
fcomp qword [esp + 0xe0]
fnstsw ax
test ah, 0x41
jne 0x4c2a97
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
fld qword [esp + 0x54]
fcomp qword [esp + 0xe8]
fnstsw ax
test ah, 1
je 0x4c2ac3
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
mov dword [esp + 0x20], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1c8], 4
call fcn.00519440
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jl 0x4c296c
cmp dword [esp + 0x24], 0xffffffff
je 0x4c2bd7
fld qword [esp + 0x94]
fmul qword [esp + 0x44]
mov esi, dword [esp + 0x70]
push 0xffffffffffffffff
lea ecx, [esp + 0x6c]
fadd qword [esp + 0x80]
lea eax, [esi + 1]
push eax
fstp qword [esp + 0x18]
fld qword [esp + 0xa4]
fmul qword [esp + 0x4c]
fadd qword [esp + 0x8c]
fstp qword [esp + 0x20]
call fcn.004c4110
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
shl esi, 4
add esi, edx
mov dword [esi], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov esi, dword [esp + 0x24]
mov ecx, edx
mov ecx, dword [ecx + esi*4]
lea eax, [edx + esi*4]
mov dword [esp + 0x24], eax
call fcn.00498ba0
fld qword [esp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
fsub qword [ecx + 0x1b0]
fadd qword [edx + 0x10]
fstp qword [esp + 0x10]
mov ecx, dword [eax]
call fcn.00498ba0
mov edx, dword [ebx + 4]
push 0xffffffffffffffff
fld qword [esp + 0x1c]
mov ecx, dword [edx + esi*4]
mov esi, dword [esp + 0x3c]
fsub qword [ecx + 0x1b8]
lea edx, [esi + 1]
lea ecx, [esp + 0x34]
push edx
fadd qword [eax + 0x18]
fstp qword [esp + 0x20]
call fcn.004c4110
mov eax, dword [esp + 0x34]
shl esi, 4
add esi, eax
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x4c2df6
fld qword [esp + 0x94]
fmul qword [esp + 0x54]
mov esi, dword [esp + 0x70]
push 0xffffffffffffffff
fadd qword [esp + 0x80]
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x70]
fstp qword [esp + 0x18]
fld qword [esp + 0xa4]
fmul qword [esp + 0x5c]
fadd qword [esp + 0x8c]
fstp qword [esp + 0x20]
call fcn.004c4110
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x10]
shl esi, 4
add esi, ecx
mov dword [esi], edx
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x20]
fld qword [esp + 0x10]
mov ecx, dword [eax + esi*4]
fadd qword [ecx + 0x1b0]
fstp qword [esp + 0x4c]
call fcn.00498ba0
fld qword [esp + 0x4c]
fsub qword [eax + 0x10]
mov ecx, dword [ebx + 4]
fstp qword [esp + 0x10]
mov esi, dword [ecx + esi*4]
mov ecx, esi
call fcn.00498ba0
fld qword [esi + 0x1b8]
mov ecx, dword [esp + 0x38]
fsub qword [eax + 0x18]
mov eax, dword [esp + 0x34]
lea esi, [ecx + 1]
test esi, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], esi
fstp qword [esp + 0x18]
jne 0x4c2cc0
test eax, eax
je 0x4c2cb1
push eax
call fcn.0051aee4
add esp, 4
xor eax, eax
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
jmp 0x4c2dd2
test eax, eax
jne 0x4c2cee
mov edx, esi
shl edx, 4
push edx
call fcn.0051af44
add esp, 4
mov dword [esp + 0x34], eax
push esi
push eax
call fcn.0049afe0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
jmp 0x4c2dd2
cmp esi, dword [esp + 0x3c]
jg 0x4c2d26
cmp ecx, esi
jge 0x4c2d15
mov edx, esi
sub edx, ecx
shl ecx, 4
add ecx, eax
push edx
push ecx
call fcn.0049afe0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], esi
jmp 0x4c2dd2
jle 0x4c2d1d
sub ecx, esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], esi
jmp 0x4c2dd2
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4c2d51
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4c2d45
mov eax, 4
jmp 0x4c2d51
cmp eax, 0x400
jle 0x4c2d51
mov eax, 0x400
mov ecx, dword [esp + 0x3c]
add eax, ecx
cmp esi, eax
mov dword [esp + 0x24], eax
jl 0x4c2d63
mov dword [esp + 0x24], esi
mov edx, dword [esp + 0x24]
shl edx, 4
push edx
call fcn.0051af44
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
shl ecx, 4
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x5c], eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov edx, esi
sub edx, ecx
shl ecx, 4
add ecx, eax
push edx
push ecx
call fcn.0049afe0
mov eax, dword [esp + 0x34]
push eax
call fcn.0051aee4
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0xa8]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
shl ecx, 4
add ecx, eax
mov dword [ecx], edx
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0xc], eax
fld qword [esp + 0x7c]
fsub qword [0x531cd0]
fst qword [esp + 0x7c]
fcomp qword [0x5317a0]
fnstsw ax
test ah, 0x41
je 0x4c2934
xor esi, esi
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, edi
call fcn.004c2f50
mov edx, dword [edi + 0x1908]
shl edx, 4
mov ecx, dword [edx + edi - 8]
lea eax, [edx + edi]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax - 4]
mov dword [eax + 8], ecx
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x1908]
inc eax
shl eax, 4
mov dword [eax + edi], esi
mov dword [eax + edi + 4], esi
mov ecx, dword [edi + 0x1908]
shl ecx, 4
mov edx, dword [ecx + edi + 0xc78]
lea eax, [ecx + edi]
mov dword [eax + 0xc88], edx
mov ecx, dword [eax + 0xc7c]
mov dword [eax + 0xc8c], ecx
mov edx, dword [edi + 0x1908]
add edx, 0xc9
mov ecx, dword [ebp + 0x24]
shl edx, 4
mov dword [edx + edi], esi
mov dword [edx + edi + 4], esi
mov eax, dword [edi + 0x1908]
inc eax
mov dword [edi + 0x1908], eax
mov eax, dword [ebp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.004c3760
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1c8], 3
call fcn.00519440
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1c8], 2
call fcn.004891f0
mov edi, 0x53b01c
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x1c8], 7
cmp eax, esi
je 0x4c2f06
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x30], 0x53138c
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c8], 8
cmp eax, esi
je 0x4c2f2e
push eax
call fcn.0051aee4
add esp, 4
mov ecx, dword [esp + 0x1c0]
pop edi
fld qword [esp + 0x40]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24