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

Disassembly:
push 0xffffffffffffffff
push 0x415358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
xor eax, eax
push esi
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], ecx
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 4
mov dword [esp + 0x28], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call dword [edx + 0x3c]
movsx eax, word [esp + 6]
mov edx, dword [esi]
push 0
push eax
mov ecx, esi
call dword [edx + 0x30]
cmp word [esp + 4], 0
mov dword [esp + 0xc], 0
jle 0x402922
push ebx
push ebp
push edi
or ebp, 0xffffffff
mov edx, dword [esi]
lea eax, [esp + 0x34]
push 0x54
push eax
mov ecx, esi
call dword [edx + 0x3c]
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x402650
fld dword [esp + 0x78]
fsub dword [esp + 0x7c]
fmul dword [0x416a18]
fld dword [esp + 0x80]
fmul qword [0x416a10]
fptan
fstp st(0)
fxch st(1)
fxch st(1)
fdivp st(1)
fsub dword [esp + 0x84]
fcom qword [0x416a08]
fnstsw ax
test ah, 1
je 0x4025ec
fstp st(0)
fld dword [0x416a04]
fld dword [esp + 0x78]
fmul dword [0x416a18]
push 0x468
fstp dword [esp + 0x24]
fld dword [esp + 0x84]
fmul dword [0x416a18]
fstp dword [esp + 0x2c]
fld dword [esp + 0x80]
fmul dword [0x416a18]
fstp dword [esp + 0x34]
fstp dword [esp + 0x28]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 0
je 0x4028aa
mov ecx, eax
call fcn.00409e30
jmp 0x4028ac
cmp eax, 1
jne 0x4026a6
fld dword [esp + 0x78]
fmul dword [0x416a18]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
push 0x548
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
fstp dword [esp + 0x24]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 1
je 0x4028aa
mov ecx, eax
call fcn.004091e0
jmp 0x4028ac
cmp eax, 2
jne 0x4026f1
fld dword [esp + 0x78]
fmul dword [0x416a18]
mov eax, dword [esp + 0x7c]
push 0x348
mov dword [esp + 0x28], eax
fstp dword [esp + 0x24]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 2
je 0x4028aa
mov ecx, eax
call fcn.004074f0
jmp 0x4028ac
cmp eax, 3
jne 0x40273c
fld dword [esp + 0x78]
fmul dword [0x416a18]
mov ecx, dword [esp + 0x7c]
push 0x348
mov dword [esp + 0x28], ecx
fstp dword [esp + 0x24]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 3
je 0x4028aa
mov ecx, eax
call fcn.00408030
jmp 0x4028ac
cmp eax, 4
jne 0x402787
fld dword [esp + 0x78]
fmul dword [0x416a18]
mov edx, dword [esp + 0x7c]
push 0x348
mov dword [esp + 0x28], edx
fstp dword [esp + 0x24]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 4
je 0x4028aa
mov ecx, eax
call fcn.004074f0
jmp 0x4028ac
cmp eax, 5
jne 0x4027d2
fld dword [esp + 0x78]
fmul dword [0x416a18]
mov eax, dword [esp + 0x7c]
push 0x348
mov dword [esp + 0x28], eax
fstp dword [esp + 0x24]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 5
je 0x4028aa
mov ecx, eax
call fcn.004074f0
jmp 0x4028ac
cmp eax, 6
jne 0x402835
fld dword [esp + 0x78]
fmul dword [0x416a18]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push 0x568
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
fstp dword [esp + 0x24]
fld dword [esp + 0x80]
fmul dword [0x416a18]
fstp dword [esp + 0x2c]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 6
je 0x4028aa
mov ecx, eax
call fcn.0040b280
jmp 0x4028ac
cmp eax, 7
jne 0x402902
fld dword [esp + 0x78]
fmul dword [0x416a18]
mov eax, dword [esp + 0x84]
push 0x470
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 0x41200000
fstp dword [esp + 0x24]
fld dword [esp + 0x84]
fmul dword [0x416a18]
fstp dword [esp + 0x2c]
fld dword [esp + 0x80]
fmul dword [0x416a18]
fstp dword [esp + 0x34]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x90], 7
je 0x4028aa
mov ecx, eax
call fcn.0040cad0
jmp 0x4028ac
xor eax, eax
mov ebx, eax
mov dword [esp + 0x90], ebp
test ebx, ebx
je 0x402902
mov edx, dword [ebx]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x34]
xor eax, eax
push ebx
mov edx, dword [ecx]
mov ecx, ebp
mov dword [ebx + 0xc], edx
lea edx, [ebx + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
call fcn.00401c90
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x18]
movsx ecx, word [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x402591
pop edi
pop ebp
mov eax, 1
pop ebx
jmp 0x402927
mov eax, 1
mov ecx, dword [esp + 0x7c]
pop esi
mov dword fs:[0], ecx
add esp, 0x84
ret 4