Function at 0x5142f0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d71cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x594
push ebx
mov eax, 0x5e2824
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x5a8], ebx
mov dword [esp + 0x2c], 0x5e78f8
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x40], 0x5f01b8
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
push 0x40000000
lea eax, [esp + 0x6c]
push ebx
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
mov ecx, 0x628bd0
mov byte [esp + 0x5bc], 4
call fcn.00576c50
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], ebx
cmp eax, ebx
jle 0x514417
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
mov esi, dword [eax + ecx*4]
mov eax, dword [esp + 0x24]
add esi, 0x10
mov edi, eax
lea ecx, [esp + 0x1c]
add eax, dword [esi + 8]
push eax
call fcn.0046d900
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea ecx, [edx + edi*4]
mov edx, eax
dec eax
test edx, edx
je 0x514406
inc eax
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x5143f9
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x5143c1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
mov esi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.0046d900
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
lea eax, [edx + esi*4]
mov edx, dword [esp + 0x5c]
cmp edx, ebx
je 0x51444f
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x514442
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
mov esi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.0046d900
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
lea eax, [edx + esi*4]
mov edx, dword [esp + 0x70]
cmp edx, ebx
je 0x514487
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x51447a
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
mov edi, eax
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0046d900
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
lea ecx, [ecx + edi*4]
mov edi, eax
dec eax
test edi, edi
je 0x5144c3
inc eax
mov edi, dword [edx]
add edx, 4
mov dword [ecx], edi
add ecx, 4
dec eax
jne 0x5144b6
fld qword [ebp + 0x10]
fmul qword [0x5e2908]
mov edx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
push esi
push edx
call fcn.0050e0b0
fstp qword [ebp + 0x10]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0050b980
lea edx, [esp + 0x44]
push edx
call fcn.0050bb60
add esp, 0x1c
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString_3
fld qword [ebp + 0x10]
fmul qword [0x5e2640]
sub esp, 8
mov byte [esp + 0x5b0], 5
fstp qword [esp]
push 0x62066c
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
lea eax, [esp + 0x20]
push eax
call sub.mfc42u.dll_CString::Format_1
mov ecx, 0xa2
xor eax, eax
lea edi, [esp + 0xa0]
mov edx, 3
rep stosd dword es:[edi], eax
mov eax, 2
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xe8], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0x18]
mov ecx, 0xa2
lea esi, [esp + 0xa0]
lea eax, [eax + eax*4]
lea edi, [esp + 0x328]
mov dword [esp + 0xb0], 4
mov dword [esp + 0xd8], edx
mov dword [esp + 0xe0], 0xcccccccd
mov dword [esp + 0xe4], 0x3ff0cccc
mov dword [esp + 0xd0], 0x66666666
mov dword [esp + 0xd4], 0x3fe66666
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0x3ff80000
mov dword [esp + 0xc0], 0x33333333
mov dword [esp + 0xc4], 0x3fe33333
mov dword [esp + 0xec], 0xa
mov dword [esp + 0xc8], 0x9999999a
mov dword [esp + 0xcc], 0x40099999
mov dword [esp + 0xa0], 0x7530
lea eax, [eax + eax*4]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + eax*4]
mov dword [esp + 0x360], edx
shl ecx, 3
push 0x40100000
mov dword [esp + 0x334], 0x33333333
mov dword [esp + 0x338], 0x3ff33333
mov dword [esp + 0x33c], 0x9999999a
mov dword [esp + 0x340], 0x3fe99999
mov dword [esp + 0x368], 0xe
mov dword [esp + 0x344], 0xcccccccd
mov dword [esp + 0x348], 0x400ccccc
mov dword [esp + 0x31c], ecx
push ebx
lea edx, [esp + 0x70]
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, 0x628bd0
call fcn.00576c50
mov esi, eax
push 0x40120000
lea edx, [esp + 0x6c]
push ebx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, 0x628bd0
call fcn.00576c50
cmp esi, eax
push ebx
jne 0x51490d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x31c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.005127f0
lea ecx, [esp + 0x30]
push 1
push ecx
fstp st(0)
call fcn.004f0d90
mov eax, dword [esp + 0x5ac]
add esp, 0x20
cmp eax, ebx
jne 0x514808
lea edx, [esp + 0x2c]
push edx
call fcn.0050bb60
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x5a8], 4
call sub.mfc42u.dll_CString::CString
mov dword [esp + 0x40], 0x5f01b8
mov eax, dword [esp + 0x44]
mov byte [esp + 0x5a8], 6
cmp eax, ebx
je 0x51474c
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
mov edi, 0x5e2824
mov dword [esp + 0x40], esi
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x58]
mov byte [esp + 0x5a8], 7
cmp eax, ebx
je 0x514777
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x5a8], 8
cmp eax, ebx
je 0x514798
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x68], esi
mov dword [esp + 0x2c], 0x5e78f8
mov eax, dword [esp + 0x30]
mov byte [esp + 0x5a8], 9
cmp eax, ebx
je 0x5147cc
mov ecx, dword [esp + 0x34]
push ecx
push eax
call fcn.0050d120
mov edx, dword [esp + 0x30]
push edx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5a8], 0xa
cmp eax, ebx
je 0x5147f0
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
fld qword [ebp + 0x10]
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x584]
mov eax, dword [esp + 0x580]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
mov byte [esp + 0x5a8], 4
call sub.mfc42u.dll_CString::CString
mov dword [esp + 0x40], 0x5f01b8
mov eax, dword [esp + 0x44]
mov byte [esp + 0x5a8], 0xb
cmp eax, ebx
je 0x514850
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
mov edi, 0x5e2824
mov dword [esp + 0x40], esi
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x58]
mov byte [esp + 0x5a8], 0xc
cmp eax, ebx
je 0x51487b
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x5a8], 0xd
cmp eax, ebx
je 0x51489c
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x68], esi
mov dword [esp + 0x2c], 0x5e78f8
mov eax, dword [esp + 0x30]
mov byte [esp + 0x5a8], 0xe
cmp eax, ebx
je 0x5148d0
mov edx, dword [esp + 0x34]
push edx
push eax
call fcn.0050d120
mov eax, dword [esp + 0x30]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5a8], 0xf
cmp eax, ebx
je 0x5148f4
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
fld qword [esp + 0xc]
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x94]
push ecx
push edi
push edx
push eax
push esi
call fcn.005127f0
fstp st(0)
mov dword [esp + 0x94], 0x5e78f8
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebx
lea ecx, [esp + 0x94]
lea edx, [esp + 0x30]
push ecx
push edx
mov byte [esp + 0x5c8], 0x10
call fcn.0050b980
lea eax, [esp + 0x4c]
push eax
call fcn.0050bb60
mov eax, dword [esp + 0x328]
add esp, 0x24
cmp eax, ebx
push ebx
je 0x5149a7
fld qword [esp + 0x2fc]
fadd qword [ebp + 0x10]
lea ecx, [esp + 0x31c]
push ecx
push edi
fmul qword [0x5e2790]
sub esp, 8
fstp qword [esp]
jmp 0x5149b8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x31c]
push edx
push edi
push eax
push ecx
push esi
call fcn.005127f0
add esp, 0x18
lea edx, [esp + 0x18]
fstp st(0)
push 1
push edx
call fcn.004f0d90
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x594]
add esp, 8
lea edx, [eax + ecx]
test edx, edx
jne 0x514a89
lea eax, [esp + 0x2c]
push eax
call fcn.0050bb60
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0x5a8], 5
call fcn.00461550
lea ecx, [esp + 0x14]
mov byte [esp + 0x5a8], 4
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5a8], 3
call fcn.005170e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x5a8], 2
call fcn.0040bf90
lea ecx, [esp + 0x68]
mov byte [esp + 0x5a8], 1
call fcn.0040bf90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5a8], bl
call fcn.00461550
lea ecx, [esp + 0x18]
mov dword [esp + 0x5a8], 0xffffffff
call fcn.0040bf90
fld qword [ebp + 0x10]
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ebx
jne 0x514b39
mov ecx, dword [esp + 0x580]
mov edx, dword [esp + 0x584]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x10], edx
mov byte [esp + 0x5a8], 5
call fcn.00461550
lea ecx, [esp + 0x14]
mov byte [esp + 0x5a8], 4
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5a8], 3
call fcn.005170e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x5a8], 2
call fcn.0040bf90
lea ecx, [esp + 0x68]
mov byte [esp + 0x5a8], 1
call fcn.0040bf90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5a8], bl
call fcn.00461550
lea ecx, [esp + 0x18]
mov dword [esp + 0x5a8], 0xffffffff
call fcn.0040bf90
fld qword [esp + 0xc]
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, ebx
jne 0x514bf6
lea eax, [esp + 0x7c]
push eax
call fcn.0050bb60
mov ecx, dword [esp + 0x2fc]
mov edx, dword [esp + 0x300]
mov dword [esp + 0x10], ecx
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x10], edx
mov byte [esp + 0x5a8], 5
call fcn.00461550
lea ecx, [esp + 0x14]
mov byte [esp + 0x5a8], 4
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5a8], 3
call fcn.005170e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x5a8], 2
call fcn.0040bf90
lea ecx, [esp + 0x68]
mov byte [esp + 0x5a8], 1
call fcn.0040bf90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5a8], bl
call fcn.00461550
lea ecx, [esp + 0x18]
mov dword [esp + 0x5a8], 0xffffffff
call fcn.0040bf90
fld qword [esp + 0xc]
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x2f8]
fcomp qword [esp + 0x580]
fnstsw ax
test ah, 1
je 0x514cc4
lea eax, [esp + 0x7c]
push eax
call fcn.0050bb60
mov ecx, dword [esp + 0x2fc]
mov edx, dword [esp + 0x300]
mov dword [esp + 0x10], ecx
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x10], edx
mov byte [esp + 0x5a8], 5
call fcn.00461550
lea ecx, [esp + 0x14]
mov byte [esp + 0x5a8], 4
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5a8], 3
call fcn.005170e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x5a8], 2
call fcn.0040bf90
lea ecx, [esp + 0x68]
mov byte [esp + 0x5a8], 1
call fcn.0040bf90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5a8], bl
call fcn.00461550
lea ecx, [esp + 0x18]
mov dword [esp + 0x5a8], 0xffffffff
call fcn.0040bf90
fld qword [esp + 0xc]
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x584]
mov eax, dword [esp + 0x580]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0xc], eax
mov byte [esp + 0x5a8], 5
call fcn.00461550
lea ecx, [esp + 0x14]
mov byte [esp + 0x5a8], 4
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x5a8], 3
call fcn.005170e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x5a8], 2
call fcn.0040bf90
lea ecx, [esp + 0x68]
mov byte [esp + 0x5a8], 1
call fcn.0040bf90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5a8], bl
call fcn.00461550
lea ecx, [esp + 0x18]
mov dword [esp + 0x5a8], 0xffffffff
call fcn.0040bf90
mov ecx, dword [esp + 0x5a0]
pop edi
fld qword [esp + 8]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret