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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d971b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push esi
push edi
mov ecx, dword [0x5f0794]
mov edx, dword [ebp + 0x30]
mov eax, dword [0x5f0790]
mov dword [ebp + 0x1c], ecx
mov ecx, dword [edx + 8]
xor edi, edi
mov dword [ebp + 0x18], eax
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x168], edi
jle 0x540e5d
mov ecx, dword [edx + 4]
inc eax
mov ecx, dword [ecx + eax*4 - 4]
mov byte [ecx + 0x20], 1
mov ecx, dword [edx + 8]
cmp eax, ecx
jl 0x540e4a
mov dword [esp + 0x38], 0x5e2824
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov eax, dword [edx + 8]
mov byte [esp + 0x168], 1
cmp eax, edi
jle 0x540f1a
mov ebx, 1
mov dword [esp + 0xc], edi
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + eax]
mov al, byte [esi + 0x20]
test al, al
je 0x540f00
mov ecx, esi
call fcn.0050b080
mov eax, dword [ebp + 0x30]
mov edi, ebx
fstp qword [esi + 0x28]
cmp ebx, dword [eax + 8]
jge 0x540ee8
mov edx, dword [eax + 4]
mov ecx, dword [edx + edi*4]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [esi + 0x1c]
cmp edx, ecx
jne 0x540ee0
mov ecx, esi
call fcn.0050b080
fadd qword [esi + 0x28]
mov eax, dword [ebp + 0x30]
fstp qword [esi + 0x28]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi*4]
mov byte [edx + 0x20], 0
mov ecx, dword [eax + 8]
inc edi
cmp edi, ecx
jl 0x540eb6
mov byte [esi + 0x20], 0
mov eax, dword [esp + 0x40]
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.0040c9d0
mov edx, dword [ebp + 0x30]
xor edi, edi
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + 8]
add ecx, 4
inc ebx
mov dword [esp + 0xc], ecx
lea ecx, [ebx - 1]
cmp ecx, eax
jl 0x540e91
lea edx, [esp + 0x38]
push 0x50b720
push edx
call fcn.0050b780
mov eax, 0x5e27fc
add esp, 8
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x10], eax
xor eax, eax
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], 0x5f0894
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x168], 4
cmp ecx, edi
mov esi, ecx
jne 0x540f93
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], edi
jmp 0x540fc6
lea eax, [ecx*4]
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x6c], eax
push esi
push eax
call fcn.005463a0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
mov esi, ecx
cmp ecx, edi
mov dword [esp + 0x4c], esi
jne 0x540ff6
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x540fe9
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
jmp 0x5410d7
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x541022
shl ecx, 2
push ecx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x14], eax
push esi
push eax
call fcn.005463a0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
jmp 0x5410d1
cmp ecx, ebx
jg 0x541047
cmp ecx, edx
jle 0x54103e
mov eax, dword [esp + 0x14]
sub ecx, edx
push ecx
lea ecx, [eax + edx*4]
push ecx
call fcn.005463a0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], esi
jmp 0x5410d5
test eax, eax
jne 0x54106e
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x541062
mov eax, 4
jmp 0x54106e
cmp eax, 0x400
jle 0x54106e
mov eax, 0x400
add eax, ebx
cmp ecx, eax
mov dword [esp + 0xc], eax
jl 0x54107c
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0xc]
lea eax, [edx*4]
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ebx, eax
add esp, 4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov ecx, esi
sub ecx, eax
lea edx, [ebx + eax*4]
push ecx
push edx
call fcn.005463a0
mov eax, dword [esp + 0x14]
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
xor edi, edi
mov esi, ecx
cmp ecx, edi
mov dword [esp + 0x4c], esi
jne 0x541107
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x5410fa
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
jmp 0x541210
mov edx, dword [esp + 0x28]
cmp edx, edi
jne 0x54113a
lea edx, [ecx + ecx*4]
shl edx, 3
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x28], eax
push esi
push eax
call fcn.0040d460
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
jmp 0x541210
mov ebx, dword [esp + 0x30]
cmp ecx, ebx
jg 0x541166
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jle 0x54115d
sub ecx, eax
lea eax, [eax + eax*4]
push ecx
lea ecx, [edx + eax*8]
push ecx
call fcn.0040d460
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], esi
jmp 0x541210
mov eax, dword [esp + 0x34]
cmp eax, edi
jne 0x541193
mov eax, dword [esp + 0x2c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x541187
mov eax, 4
jmp 0x541193
cmp eax, 0x400
jle 0x541193
mov eax, 0x400
add eax, ebx
cmp ecx, eax
jge 0x54119f
mov dword [esp + 0xc], eax
jmp 0x5411a5
mov dword [esp + 0xc], ecx
mov eax, ecx
lea edx, [eax + eax*4]
shl edx, 3
push edx
call sub.mfc42u.dll_operatornew
mov ebx, eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edi, ebx
lea ecx, [eax + eax*4]
add esp, 4
shl ecx, 3
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov ecx, esi
lea edx, [eax + eax*4]
sub ecx, eax
push ecx
lea eax, [ebx + edx*8]
push eax
call fcn.0040d460
mov ecx, dword [esp + 0x28]
push ecx
call sub.mfc42u.dll_operatordelete
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
xor edi, edi
xor eax, eax
cmp ecx, edi
jle 0x54124c
xor edx, edx
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x6c]
mov ecx, dword [ecx + eax*4]
mov ecx, dword [ecx + 0x1c]
mov dword [esi + eax*4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4], edi
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esi + eax*4]
add ecx, edx
inc eax
add edx, 0x28
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jl 0x541218
mov edx, dword [ebp + 0x30]
xor eax, eax
mov dword [esp + 0xc], eax
cmp dword [edx + 8], edi
jle 0x5412a0
mov edx, dword [edx + 4]
mov esi, dword [edx + eax*4]
xor eax, eax
cmp ecx, edi
jle 0x54128d
mov ebx, dword [esi + 0x1c]
mov edx, dword [esp + 0x6c]
cmp dword [edx], ebx
je 0x54127b
inc eax
add edx, 4
cmp eax, ecx
jl 0x54126d
jmp 0x54128d
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + eax*4]
inc edx
mov dword [ecx + eax*4], edx
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0x30]
mov eax, dword [esp + 0xc]
inc eax
mov esi, dword [edx + 8]
mov dword [esp + 0xc], eax
cmp eax, esi
jl 0x54125a
lea ecx, [esp + 0x90]
call fcn.00527e70
push edi
push edi
push edi
push edi
push 0x64
lea ecx, [esp + 0xa4]
call fcn.005280d0
mov dword [esp + 0x7c], 0x5e2824
mov dword [esp + 0x80], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], edi
lea eax, [esp + 0x68]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x80]
push ecx
mov ecx, dword [ebp + 0x2c]
lea eax, [esp + 0x40]
push edx
mov edx, dword [ebp + 0x28]
push eax
push ecx
push edx
push edi
push edi
lea ecx, [ebp + 8]
mov byte [esp + 0x188], 6
call fcn.004b7060
sub esp, 8
lea ecx, [esp + 0xb8]
fstp qword [esp]
push 1
push edi
push edi
push edi
call fcn.0052d1b0
mov ebx, 0x5e27fc
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x170], 7
call fcn.0046d900
mov eax, dword [esp + 0x5c]
xor ecx, ecx
cmp eax, edi
jle 0x541383
mov esi, dword [ebp + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ecx*4]
cdq
idiv esi
mov edx, dword [esp + 0x58]
inc ecx
mov dword [edx + ecx*4 - 4], eax
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jl 0x541368
lea ecx, [esp + 0x50]
call sub.mfc42u.dll_CString::CString_3
push edi
lea eax, [esp + 0x54]
push edi
push eax
mov byte [esp + 0x174], 8
call fcn.00436a50
add esp, 0xc
test al, al
jne 0x541474
lea ecx, [esp + 0x50]
mov byte [esp + 0x168], 7
call sub.mfc42u.dll_CString::CString
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x58]
mov byte [esp + 0x168], 9
cmp eax, edi
je 0x5413d9
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], 0x5e262c
mov byte [esp + 0x168], 5
call fcn.0040bf90
lea ecx, [esp + 0x90]
mov byte [esp + 0x168], 4
call fcn.00527f70
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 3
call fcn.005457a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 2
call fcn.0040a7f0
lea ecx, [esp + 0x68]
mov byte [esp + 0x168], 1
call fcn.0040a7f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x168], 0
call fcn.0040bf90
lea ecx, [ebp + 8]
mov dword [esp + 0x168], 0xffffffff
call fcn.0042bd50
xor eax, eax
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x40]
xor ebx, ebx
xor esi, esi
test eax, eax
jle 0x5414de
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x14]
mov edi, dword [edx + esi*4]
test edi, edi
jle 0x5414d5
mov eax, dword [ebp + 0x30]
mov ecx, dword [ecx + esi*4]
push eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
lea edx, [ebp + 8]
push esi
push edx
lea ecx, [esp + 0xa8]
call fcn.005415a0
mov ecx, dword [esp + 0x14]
mov eax, edi
mov edi, dword [ecx + esi*4]
mov ecx, dword [esp + 0x58]
sub eax, edi
cdq
idiv dword [ecx + esi*4]
cmp eax, ebx
jle 0x5414cb
mov ebx, eax
fld qword [ebp + 8]
fadd st(1)
fstp qword [ebp + 8]
fstp st(0)
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
jl 0x541484
lea ecx, [esp + 0x50]
mov byte [esp + 0x168], 7
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0x168], 6
call fcn.0040a7f0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x168], 5
call fcn.0040bf90
lea ecx, [esp + 0x90]
mov byte [esp + 0x168], 4
call fcn.00527f70
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 3
call fcn.005457a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 2
call fcn.0040a7f0
lea ecx, [esp + 0x68]
mov byte [esp + 0x168], 1
call fcn.0040a7f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x168], 0
call fcn.0040bf90
lea ecx, [ebp + 8]
mov dword [esp + 0x168], 0xffffffff
call fcn.0042bd50
mov ecx, dword [esp + 0x160]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret