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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x68]
push 0x40
push edi
mov dword [esp + 0x60], 1
call ecx
test eax, eax
js 0x6d05537c
cmp dword [0x6d0f9574], 0
jne 0x6d05537c
cmp dword [0x6d0f9568], 0
je 0x6d05528d
push 0xe10
call dword [0x6d0f9578]
add esp, 4
mov eax, dword [0x6d0fbea0]
mov esi, dword [ebp + 0x18]
mov edx, dword [edi]
mov ecx, dword [edx + 0x190]
push eax
push esi
push edi
call ecx
mov edx, dword [edi]
mov ecx, dword [edx + 0x190]
mov ebx, eax
mov eax, dword [0x6d0fbf08]
push eax
push esi
push edi
mov dword [esp + 0x44], ebx
call ecx
mov edx, dword [edi]
mov ecx, dword [edx + 0x17c]
mov dword [esp + 0x48], eax
mov eax, dword [0x6d0fbf30]
push eax
push esi
push edi
call ecx
mov edx, dword [edi]
mov esi, eax
mov eax, dword [edx + 0x2ac]
push esi
push edi
mov dword [esp + 0x58], esi
call eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x378]
push 0
push esi
push edi
mov dword [esp + 0x58], eax
call edx
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x6d05537c
test bl, 1
jne 0x6d05530c
lea eax, [ebx + 1]
mov dword [esp + 0x24], eax
jmp 0x6d055312
mov eax, ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x48]
test bl, 1
jne 0x6d05531c
inc ebx
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x6d05536d
test ebx, ebx
jle 0x6d05536d
xor edx, edx
or eax, 0xffffffff
div dword [esp + 0x24]
xor edx, edx
div ebx
mov dword [esp + 0x60], eax
cmp eax, 8
jbe 0x6d05536d
mov eax, ebx
imul eax, dword [esp + 0x24]
mov dword [esp + 0x64], eax
add eax, eax
add eax, eax
add eax, eax
push eax
push 1
call dword [sym.imp.MSVCR100.dll_calloc]
mov ecx, dword [esp + 0x30]
mov ebx, eax
add esp, 8
mov dword [esp + 0x40], ebx
test ebx, ebx
jne 0x6d055387
mov esi, dword [esp + 0x50]
mov edx, dword [edi]
mov eax, dword [edx + 0x37c]
push 2
push ecx
push esi
push edi
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [esp + 0x4c]
fld dword [ecx + esi*4 - 4]
mov eax, dword [esp + 0x48]
dec esi
fstp dword [esp + 0x20]
test eax, eax
jle 0x6d0554bc
mov dword [esp + 0x44], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
xor ebx, ebx
cmp eax, 4
jl 0x6d05545d
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
lea ecx, [edx + esi*4 - 8]
lea edx, [eax - 4]
shr edx, 2
inc edx
lea eax, [edx*4]
sub esi, eax
mov ebx, eax
lea ecx, [ecx]
fld dword [ecx + 8]
fstp qword [edi]
fld dword [ecx + 8]
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x6d0553fc
fld dword [ecx + 8]
fstp dword [esp + 0x20]
fld dword [ecx + 4]
fstp qword [edi + 8]
fld dword [ecx + 4]
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x6d055419
fld dword [ecx + 4]
fstp dword [esp + 0x20]
fld dword [ecx]
fstp qword [edi + 0x10]
fld dword [ecx]
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x6d055433
fld dword [ecx]
fstp dword [esp + 0x20]
fld dword [ecx - 4]
fstp qword [edi + 0x18]
fld dword [ecx - 4]
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x6d055450
fld dword [ecx - 4]
fstp dword [esp + 0x20]
sub ecx, 0x10
add edi, 0x20
dec edx
jne 0x6d0553e0
mov eax, dword [esp + 0x38]
cmp ebx, eax
jge 0x6d055499
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
add ecx, ebx
lea edx, [edx + ecx*8]
mov ecx, eax
sub ecx, ebx
fld dword [edi + esi*4]
fstp qword [edx]
fld dword [edi + esi*4]
fld dword [esp + 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x6d055492
fld dword [edi + esi*4]
fstp dword [esp + 0x20]
dec esi
add edx, 8
dec ecx
jne 0x6d055476
mov eax, dword [esp + 0x24]
add dword [esp + 0x44], eax
add eax, eax
add eax, eax
add eax, eax
add dword [esp + 0x34], eax
dec dword [esp + 0x54]
jne 0x6d0553b0
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
mov eax, dword [edi]
mov eax, dword [eax + 0x37c]
push 2
push ecx
push edx
push edi
call eax
fld dword [0x6d0b7694]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x6d0554f9
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.6d04ff70
add esp, 0x10
test eax, eax
jle 0x6d0554e4
mov ecx, dword [ebp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edi
call fcn.6d04ff70
mov edx, dword [esp + 0x28]
add esp, 0x10
push 1
test eax, eax
jg 0x6d05554a
push edx
call fcn.6d04ef20
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esp + 0x20]
push 1
push eax
lea ecx, [esp + 0x74]
call fcn.6d050780
add esp, 0xc
cmp eax, 1
jge 0x6d05558f
mov ecx, dword [esp + 0x18]
push 1
push ecx
call fcn.6d04ef20
mov edx, dword [esp + 0x24]
push 1
push edx
call fcn.6d04ef20
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
push eax
push ecx
push 1
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x2c]
push edi
call fcn.6d053230
add esp, 0x18
test eax, eax
js 0x6d055562
mov eax, dword [esp + 0x78]
push 0
push eax
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.6d053230
add esp, 0x18
test eax, eax
jns 0x6d05562a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6d0555e7
mov esi, dword [eax + 8]
jmp 0x6d0555e9
xor esi, esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x6d0555fb
push eax
call dword [0x6d0f9564]
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x6d055612
mov ecx, dword [edi]
mov edx, dword [ecx + 0x37c]
push 2
push eax
push esi
push edi
call edx
mov eax, dword [esp + 0x18]
push 1
push eax
call fcn.6d04ef20
mov ecx, dword [esp + 0x24]
push 1
push ecx
jmp 0x6d055575
cmp dword [esp + 0x60], 4
jbe 0x6d05564e
mov edx, dword [esp + 0x64]
lea eax, [edx*4]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
jne 0x6d05569d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x24]
mov esi, edi
call fcn.6d0539a0
mov ecx, dword [esp + 0x24]
push 1
push ecx
call fcn.6d04ef20
mov edx, dword [esp + 0x30]
push 1
push edx
call fcn.6d04ef20
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [esp + 0x30]
mov ecx, dword [esi]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push edx
push ebx
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [0x6d0f6ee4]
add esp, 0x18
test eax, eax
je 0x6d055718
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, esi
mov esi, edi
call fcn.6d0539a0
mov edx, dword [esp + 0x24]
push 1
push edx
call fcn.6d04ef20
mov eax, dword [esp + 0x30]
push 1
push eax
call fcn.6d04ef20
mov esi, dword [sym.imp.MSVCR100.dll_free]
push ebx
call esi
mov ecx, dword [esp + 0x64]
push ecx
call esi
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [0x6d0f956c], 0
je 0x6d055874
mov edx, dword [esp + 0x4c]
mov edi, dword [sym.imp.MSVCR100.dll___iob_func]
push edx
push str.Orig_Kernel_len_d_:_n
call edi
mov esi, dword [sym.imp.MSVCR100.dll_fprintf]
add eax, 0x40
push eax
call esi
mov eax, dword [esp + 0x54]
add esp, 0xc
dec eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x20], eax
js 0x6d0557d9
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
dec eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
imul eax, ecx
neg ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], ecx
mov ebx, dword [esp + 0x50]
test ebx, ebx
js 0x6d0557b4
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
add ecx, ebx
lea eax, [edx + ecx*8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x48]
fld qword [ecx]
sub esp, 8
fstp qword [esp]
push 0x6d0b7678
call edi
add eax, 0x40
push eax
call esi
sub dword [esp + 0x58], 8
add esp, 0x10
dec ebx
jns 0x6d055790
push 0x6d0b71b8
call edi
add eax, 0x40
push eax
call esi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
add dword [esp + 0x54], edx
dec eax
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jns 0x6d055777
mov eax, dword [esp + 0x5c]
push eax
push str.New_Kernel_scale_d_:_n
call edi
add eax, 0x40
push eax
call esi
mov eax, dword [esp + 0x70]
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
js 0x6d055874
mov ecx, dword [esp + 0x38]
dec ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x24]
imul eax, ecx
mov dword [esp + 0x48], eax
mov eax, ecx
neg eax
mov dword [esp + 0x54], eax
mov ebx, dword [esp + 0x50]
test ebx, ebx
js 0x6d05584f
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
add edx, ebx
lea ecx, [eax + edx*4]
mov dword [esp + 0x4c], ecx
nop
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
push eax
push 0x6d0b765c
call edi
add eax, 0x40
push eax
call esi
sub dword [esp + 0x58], 4
add esp, 0xc
dec ebx
jns 0x6d055830
push 0x6d0b71b8
call edi
add eax, 0x40
push eax
call esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x50], ecx
dec eax
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jns 0x6d055816
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 4]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x1c]
dec eax
dec ecx
mov ecx, 1
jne 0x6d055893
mov ecx, 2
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x40]
push eax
push edx
lea eax, [ecx - 1]
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [esi - 1]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x58]
push ecx
push esi
mov esi, dword [esp + 0x48]
push eax
push ebx
push esi
call dword [0x6d0f6ecc]
add esp, 0x28
test eax, eax
je 0x6d0558d6
mov dword [esp + 0x58], 0
cmp dword [0x6d0f956c], 0
je 0x6d05599e
mov eax, dword [0x6d0f9570]
mov edi, dword [sym.imp.MSVCR100.dll_printf]
test eax, eax
je 0x6d0558fd
push eax
push str.Starting_at__d_n
call edi
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6d05590a
mov ebx, dword [ebx + 0x18]
jmp 0x6d05590c
mov ebx, eax
push str.src_is_n
call edi
add esp, 4
xor esi, esi
jmp 0x6d055920
mov ecx, dword [0x6d0f9570]
add ecx, esi
mov edx, dword [ebx + ecx*4]
push edx
push 0x6d0b7640
call edi
inc esi
add esp, 8
cmp esi, 0x14
jl 0x6d055920
push 0x6d0b71b8
call edi
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x6d055956
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 0x18]
jmp 0x6d05595a
mov ebx, dword [esp + 0x28]
push str.dst_is__n
call edi
add esp, 4
xor esi, esi
jmp 0x6d055970
mov ecx, dword [0x6d0f9570]
add ecx, esi
mov edx, dword [ebx + ecx*4]
push edx
push 0x6d0b7640
call edi
inc esi
add esp, 8
cmp esi, 0x14
jl 0x6d055970
push 0x6d0b71b8
call edi
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x6d0559c8
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov eax, esi
call fcn.6d054fe0
add esp, 8
test eax, eax
jns 0x6d0559c8
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
push edx
push esi
mov esi, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x24]
mov edx, ebx
call fcn.6d0539a0
mov ecx, dword [esp + 0x24]
push 1
push ecx
call fcn.6d04ef20
mov edx, dword [esp + 0x30]
push 1
push edx
call fcn.6d04ef20
mov eax, dword [esp + 0x5c]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push eax
call esi
mov ecx, dword [esp + 0x64]
push ecx
call esi
add esp, 0x24
cmp dword [0x6d0f9568], 0
je 0x6d055a2d
push 1
push 0xe10
call dword [0x6d0f957c]
add esp, 8
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18