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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006a42b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov dword [esp + 8], 0xad6
push ebx
mov dword [esp + 0x1c], 0x4ea33a4d
mov ebx, ecx
mov dword [esp + 8], 0x6510
cmp dword [esp + 8], 0x677c
push esi
push edi
mov dword [esp + 0x3c], ebx
jle 0x1004f70e
xor esi, esi
mov dword [esp + 0xc], esi
xor edi, edi
lea ebx, [edi + esi]
mov esi, 0x7f0b
mov eax, ebx
lea ecx, [esp + 0x70]
cdq
push edx
push eax
call fcn.1000dd90
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004f6cb
mov eax, dword [eax]
push eax
call fcn.10053d16
pop ecx
push 0
push 1
lea ecx, [esp + 0x78]
call fcn.10033a41
dec ebx
dec esi
jne 0x1004f6b3
mov esi, dword [esp + 0xc]
inc edi
cmp edi, 0x834
jl 0x1004f6ab
inc esi
mov dword [esp + 0xc], esi
cmp esi, 0x5b54
jl 0x1004f6a9
push 0x5f0
push 0
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x18], 1
cmp dword [esp + 0x10], 0x64c3
jge 0x1004f72b
push 0x1000c770
call fcn.10053d16
pop ecx
or dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x14]
push 5
pop edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0x7cf8fb6f
mov dword [esp + 0x10], 0x988a21d
call fcn.1004f460
cmp dword [esp + 0x14], 0
je 0x1004f801
push 2
pop esi
mov dword [esp + 0x20], 0x8d32ffab
lea ecx, [esp + 0x2c]
push esi
call fcn.100336b5
mov dword [esp + 0xac], esi
lea edx, [esp + 0x2c]
mov dword [esp + 0x40], 0xd402da3c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x44], 0x15a8df04
mov dword [esp + 0x38], 0x1701
mov dword [esp + 0x48], edi
call fcn.1004f463
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.1004f482
lea eax, [esp + 0x38]
mov edx, ecx
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x40]
call fcn.1004f489
or dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x50]
add esp, 0x24
call fcn.10033737
jmp 0x1004f902
mov dword [esp + 0xc], 0xcf54
mov dword [esp + 0x10], 0x40c5
cmp dword [esp + 0x10], 0x42a1
jle 0x1004f867
xor esi, esi
xor edi, edi
mov ecx, edi
mov eax, esi
sar eax, cl
lea ecx, [esp + 0x88]
cdq
push edx
push eax
call fcn.1000dd90
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1004f83e
mov eax, dword [eax]
push eax
call fcn.10053d16
pop ecx
push 0
push 1
lea ecx, [esp + 0x90]
call fcn.10033a41
inc edi
cmp edi, 0x7f35
jl 0x1004f81f
inc esi
cmp esi, 0x71fc
jl 0x1004f81d
mov eax, 0x57240e60
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
cmp dword [esp + 0x10], 0x3e42
jge 0x1004f891
push 0x1000c7a4
call fcn.10053d16
pop ecx
or dword [esp + 0xac], 0xffffffff
xor edx, edx
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
cmp eax, ecx
setge dl
cmp edx, dword [esp + 0xc]
jge 0x1004f8c9
cmp dword [esp + 0xc], 0
jne 0x1004f8c9
xor ecx, ecx
jmp 0x1004f8cc
xor ecx, ecx
inc ecx
xor eax, eax
cmp ecx, 1
sete al
cmp eax, dword [esp + 0x24]
jne 0x1004f8de
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x60]
push eax
call fcn.1004bb62
mov esi, eax
lea edi, [esp + 0x30]
pop ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1004f451
mov ecx, eax
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret