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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [ebp + 8], 4
je 0x54f843
jle 0x54f803
cmp dword [ebp + 8], 8
je 0x54f7e6
cmp dword [ebp + 8], 0x10
jne 0x54f826
mov dword [ebp - 0x3c], 0x10
mov esi, 0x200
mov ebx, 0x20
mov dword [ebp - 0x44], 0x6e8c80
call fcn.004cb890
mov dword [esp], 8
mov ecx, eax
call fcn.004cba30
sub esp, 4
mov dword [eax], 0x6f1b88
mov dword [ebp - 0x40], eax
call fcn.004cb890
mov dword [esp], 0x10
mov ecx, eax
call fcn.004cba30
sub esp, 4
mov edi, eax
call fcn.004cb890
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi], eax
mov ecx, eax
mov dword [esp], esi
call fcn.004cba30
add esi, eax
sub esp, 4
mov dword [edi + 4], eax
mov ecx, eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
test ecx, ecx
je 0x54f4a3
mov dword [ecx], 0
mov dword [ecx + 8], 4
add ecx, 0x10
sub ebx, 1
jne 0x54f492
mov edx, dword [ebp + 8]
mov dword [edi + 8], esi
mov esi, dword [ebp - 0x40]
test edx, edx
mov dword [esi + 4], edi
jle 0x54f50c
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp + 8]
lea ebx, [edx + esi*8]
fld dword [edx]
add edx, 8
add eax, 0x20
fstp qword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
fld dword [edx - 4]
fstp qword [ebp - 0x28]
mov dword [eax - 0x18], 2
mov dword [eax - 0x20], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x30], 2
mov dword [eax - 0x1c], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], 2
mov dword [eax - 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax - 0xc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax - 8], ecx
cmp edx, ebx
jne 0x54f4c4
xor edi, edi
cmp dword [ebp - 0x3c], 1
je 0x54f667
call fcn.004cb890
mov dword [esp], 0x10
mov ecx, eax
call fcn.004cba30
sub esp, 4
mov dword [ebp - 0x44], eax
call fcn.004cb890
mov edx, dword [ebp - 0x44]
mov dword [edx + 4], 0
mov ecx, edx
mov dword [edx + 8], 0
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0xc], 0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.0062cec0
sub esp, 4
call fcn.004cb890
mov dword [esp], 0xc
mov ecx, eax
call fcn.004cba30
sub esp, 4
mov edi, eax
mov dword [eax], 0x6f1f98
mov dword [eax + 4], 0
mov dword [eax + 8], 1
call fcn.004cb890
mov dword [esp], 0x10
mov ecx, eax
call fcn.004cba30
sub esp, 4
mov esi, eax
call fcn.004cb890
mov edx, dword [ebp - 0x3c]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
cmp edx, esi
mov dword [esi], eax
mov dword [edi + 4], esi
je 0x54f667
mov eax, dword [edx + 8]
mov ebx, dword [edx + 4]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x48], eax
sub eax, ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 4]
sar dword [ebp - 0x3c], 3
sub ecx, eax
sar ecx, 3
cmp dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], eax
ja 0x54f876
mov ecx, dword [esi + 8]
mov dword [ebp - 0x4c], ecx
sub ecx, dword [ebp - 0x44]
sar ecx, 3
cmp dword [ebp - 0x3c], ecx
jbe 0x54f860
test ecx, ecx
lea eax, [ebx + ecx*8]
jne 0x54f8db
mov ecx, eax
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
cmp ecx, eax
je 0x54f65e
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ebx
lea esi, [esi]
test edx, edx
je 0x54f64e
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [edx], ebx
mov dword [edx + 4], esi
add ecx, 8
add edx, 8
cmp ecx, eax
jne 0x54f640
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
lea eax, [ebx + eax*8]
mov dword [esi + 8], eax
call fcn.004cb890
mov dword [esp], 0x8c
mov ecx, eax
call fcn.004cba30
movzx edx, byte [eax + 0x78]
sub esp, 4
movzx ecx, word [eax + 0x52]
and byte [eax + 0x24], 0xc0
and byte [eax + 0x74], 0x80
and edx, 0xfffffff8
or edx, 4
or cx, 0x1fe0
mov byte [eax + 0x78], dl
movzx edx, word [eax + 0x3e]
or byte [eax + 0x7c], 0xf
and word [eax + 0x26], 0xfe3f
and word [eax + 0x24], 0xc03f
and dx, 0xf80f
or dx, 0x3f0
and byte [eax + 0x29], 0x80
and byte [eax + 0x2c], 0x80
or dword [eax + 0x40], 0x7fff8000
mov word [eax + 0x3e], dx
mov word [eax + 0x52], cx
shr cx, 8
mov dword [eax + 4], 0
or ecx, 0xffffffe0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0x6f2308
mov byte [eax + 0x70], 0
mov byte [eax + 0x71], 0
mov dword [eax + 0x20], 0
mov byte [eax + 0x28], 0
mov dword [eax + 0x30], 0xffffffff
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x5c], 0xfffff800
movzx edx, byte [eax + 0x3c]
or byte [eax + 0x48], 0x7f
or word [eax + 0x38], 0xfff
or word [eax + 0x48], 0x780
and edx, 0xfffffff8
or edx, 4
mov byte [eax + 0x3c], dl
mov edx, dword [eax + 0x44]
or dword [eax + 0x4c], 0x1ff80
or word [eax + 0x50], 0x1ff8
and byte [eax + 0x57], 0x1f
or edx, 0x7f8000
mov dword [eax + 0x44], edx
shr edx, 0x18
or edx, 0xffffff80
mov byte [eax + 0x47], dl
mov edx, dword [eax + 0x24]
and byte [eax + 0x58], 0xe0
mov byte [eax + 0x53], cl
and edx, 0xffc03fff
mov dword [eax + 0x24], edx
and edx, 0xffffffc0
or edx, 2
mov byte [eax + 0x24], dl
and byte [eax + 0x1a], 0xf0
and byte [eax + 0x1c], 0xfe
mov byte [eax + 0x54], 0xff
mov byte [eax + 0x18], 1
mov byte [eax + 0x59], 0
mov byte [eax + 0x5a], 0
mov byte [eax + 0x5b], 0
mov byte [eax + 0x19], 2
mov dword [eax + 0x60], edi
mov edi, dword [ebp - 0x40]
mov dword [eax], 0x6f20c8
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov edx, dword [edi + 4]
mov dword [eax + 0x6c], 0
mov dword [eax + 0x80], 0x6f1b88
mov byte [eax + 0x88], 0
mov dword [eax + 0x84], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [ebp - 0x3c], 8
mov esi, 0x100
mov ebx, 0x10
mov dword [ebp - 0x44], 0x6e8d00
jmp 0x54f425
cmp dword [ebp + 8], 2
jne 0x54f826
mov dword [ebp - 0x3c], 2
mov esi, 0x40
mov ebx, 4
mov dword [ebp - 0x44], 0x6e8d60
jmp 0x54f425
mov esi, 0x20
mov ebx, 2
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x44], 0x6e8c68
jmp 0x54f425
mov dword [ebp - 0x3c], 4
mov esi, pe_nt_image_headers32
mov ebx, 8
mov dword [ebp - 0x44], 0x6e8d40
jmp 0x54f425
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x54f910
mov eax, dword [ebp - 0x44]
mov dword [esi + 8], eax
jmp 0x54f667
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x54f939
mov ecx, dword [esi]
shl edx, 3
mov dword [esp], edx
mov dword [ebp - 0x3c], edx
call fcn.004cba30
mov edx, dword [ebp - 0x3c]
sub esp, 4
cmp ebx, dword [ebp - 0x48]
mov ecx, eax
je 0x54f8d1
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
lea esi, [esi]
test ecx, ecx
je 0x54f8be
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], edx
add ebx, 8
add ecx, 8
cmp edi, ebx
jne 0x54f8b0
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], eax
add eax, edx
mov dword [esi + 0xc], eax
jmp 0x54f86e
mov eax, dword [ebp - 0x44]
shl ecx, 3
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [ebp - 0x48], edx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x48]
sub ecx, ebx
mov eax, dword [edx + 8]
and ecx, 0xfffffff8
add ecx, dword [edx + 4]
mov edx, dword [esi + 8]
jmp 0x54f632
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], ebx
shl edx, 3
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x3c], edx
call sub.msvcrt.dll_memmove
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 4]
add eax, edx
jmp 0x54f86e
xor edx, edx
xor eax, eax
jmp 0x54f897