Function at 0x6d091260
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 0x6d09139c
cmp dword [0x6d0fe27c], 0
jne 0x6d09139c
cmp dword [0x6d0fe270], 0
je 0x6d0912ad
push 0xe10
call dword [0x6d0fe280]
add esp, 4
mov eax, dword [0x6d0fed2c]
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 [0x6d0fed94]
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 [0x6d0fedbc]
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 0x6d09139c
test bl, 1
jne 0x6d09132c
lea eax, [ebx + 1]
mov dword [esp + 0x24], eax
jmp 0x6d091332
mov eax, ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x48]
test bl, 1
jne 0x6d09133c
inc ebx
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x6d09138d
test ebx, ebx
jle 0x6d09138d
xor edx, edx
or eax, 0xffffffff
div dword [esp + 0x24]
xor edx, edx
div ebx
mov dword [esp + 0x60], eax
cmp eax, 8
jbe 0x6d09138d
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 0x6d0913a7
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 0x6d0914dc
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 0x6d09147d
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 0x6d09141c
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 0x6d091439
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 0x6d091453
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 0x6d091470
fld dword [ecx - 4]
fstp dword [esp + 0x20]
sub ecx, 0x10
add edi, 0x20
dec edx
jne 0x6d091400
mov eax, dword [esp + 0x38]
cmp ebx, eax
jge 0x6d0914b9
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 0x6d0914b2
fld dword [edi + esi*4]
fstp dword [esp + 0x20]
dec esi
add edx, 8
dec ecx
jne 0x6d091496
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 0x6d0913d0
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 [0x6d0d4148]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x6d091519
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.6d0b0f80
add esp, 0x10
test eax, eax
jle 0x6d091504
mov ecx, dword [ebp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edi
call fcn.6d0b0f80
mov edx, dword [esp + 0x28]
add esp, 0x10
push 1
test eax, eax
jg 0x6d09156a
push edx
call fcn.6d0b0460
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.6d08c260
add esp, 0xc
cmp eax, 1
jge 0x6d0915af
mov ecx, dword [esp + 0x18]
push 1
push ecx
call fcn.6d0b0460
mov edx, dword [esp + 0x24]
push 1
push edx
call fcn.6d0b0460
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.6d08f2f0
add esp, 0x18
test eax, eax
js 0x6d091582
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.6d08f2f0
add esp, 0x18
test eax, eax
jns 0x6d09164a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6d091607
mov esi, dword [eax + 8]
jmp 0x6d091609
xor esi, esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x6d09161b
push eax
call dword [0x6d0fe26c]
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x6d091632
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.6d0b0460
mov ecx, dword [esp + 0x24]
push 1
push ecx
jmp 0x6d091595
cmp dword [esp + 0x60], 4
jbe 0x6d09166e
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 0x6d0916bd
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.6d08fa90
mov ecx, dword [esp + 0x24]
push 1
push ecx
call fcn.6d0b0460
mov edx, dword [esp + 0x30]
push 1
push edx
call fcn.6d0b0460
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 [0x6d0fae3c]
add esp, 0x18
test eax, eax
je 0x6d091738
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.6d08fa90
mov edx, dword [esp + 0x24]
push 1
push edx
call fcn.6d0b0460
mov eax, dword [esp + 0x30]
push 1
push eax
call fcn.6d0b0460
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 [0x6d0fe274], 0
je 0x6d091894
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 0x6d0917f9
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 0x6d0917d4
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 0x6d0d411c
call edi
add eax, 0x40
push eax
call esi
sub dword [esp + 0x58], 8
add esp, 0x10
dec ebx
jns 0x6d0917b0
push 0x6d0c8dbc
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 0x6d091797
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 0x6d091894
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 0x6d09186f
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 0x6d0d4100
call edi
add eax, 0x40
push eax
call esi
sub dword [esp + 0x58], 4
add esp, 0xc
dec ebx
jns 0x6d091850
push 0x6d0c8dbc
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 0x6d091836
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 0x6d0918b3
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 [0x6d0fae24]
add esp, 0x28
test eax, eax
je 0x6d0918f6
mov dword [esp + 0x58], 0
cmp dword [0x6d0fe274], 0
je 0x6d0919be
mov eax, dword [0x6d0fe278]
mov edi, dword [sym.imp.MSVCR100.dll_printf]
test eax, eax
je 0x6d09191d
push eax
push str.Starting_at__d_n
call edi
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6d09192a
mov ebx, dword [ebx + 0x18]
jmp 0x6d09192c
mov ebx, eax
push str.src_is_n
call edi
add esp, 4
xor esi, esi
jmp 0x6d091940
mov ecx, dword [0x6d0fe278]
add ecx, esi
mov edx, dword [ebx + ecx*4]
push edx
push 0x6d0d40e4
call edi
inc esi
add esp, 8
cmp esi, 0x14
jl 0x6d091940
push 0x6d0c8dbc
call edi
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x6d091976
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 0x18]
jmp 0x6d09197a
mov ebx, dword [esp + 0x28]
push str.dst_is__n
call edi
add esp, 4
xor esi, esi
jmp 0x6d091990
mov ecx, dword [0x6d0fe278]
add ecx, esi
mov edx, dword [ebx + ecx*4]
push edx
push 0x6d0d40e4
call edi
inc esi
add esp, 8
cmp esi, 0x14
jl 0x6d091990
push 0x6d0c8dbc
call edi
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x6d0919e7
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push esi
push eax
mov eax, dword [esp + 0x24]
push ecx
call fcn.6d090fb0
add esp, 0xc
test eax, eax
jns 0x6d0919e7
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.6d08fa90
mov ecx, dword [esp + 0x24]
push 1
push ecx
call fcn.6d0b0460
mov edx, dword [esp + 0x30]
push 1
push edx
call fcn.6d0b0460
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 [0x6d0fe270], 0
je 0x6d091a4c
push 1
push 0xe10
call dword [0x6d0fe284]
add esp, 8
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18