Function at 0x10091730
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 0x1009186c
cmp dword [0x10100294], 0
jne 0x1009186c
cmp dword [0x10100288], 0
je 0x1009177d
push 0xe10
call dword [0x10100298]
add esp, 4
mov eax, dword [0x10100d64]
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 [0x10100dcc]
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 [0x10100df4]
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 0x1009186c
test bl, 1
jne 0x100917fc
lea eax, [ebx + 1]
mov dword [esp + 0x24], eax
jmp 0x10091802
mov eax, ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x48]
test bl, 1
jne 0x1009180c
inc ebx
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x1009185d
test ebx, ebx
jle 0x1009185d
xor edx, edx
or eax, 0xffffffff
div dword [esp + 0x24]
xor edx, edx
div ebx
mov dword [esp + 0x60], eax
cmp eax, 8
jbe 0x1009185d
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 0x10091877
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 0x100919ac
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 0x1009194d
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 0x100918ec
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 0x10091909
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 0x10091923
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 0x10091940
fld dword [ecx - 4]
fstp dword [esp + 0x20]
sub ecx, 0x10
add edi, 0x20
dec edx
jne 0x100918d0
mov eax, dword [esp + 0x38]
cmp ebx, eax
jge 0x10091989
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 0x10091982
fld dword [edi + esi*4]
fstp dword [esp + 0x20]
dec esi
add edx, 8
dec ecx
jne 0x10091966
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 0x100918a0
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 [0x100d5130]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x100919e9
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.100b1ca0
add esp, 0x10
test eax, eax
jle 0x100919d4
mov ecx, dword [ebp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edi
call fcn.100b1ca0
mov edx, dword [esp + 0x28]
add esp, 0x10
push 1
test eax, eax
jg 0x10091a3a
push edx
call fcn.100b1180
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.1008c6e0
add esp, 0xc
cmp eax, 1
jge 0x10091a7f
mov ecx, dword [esp + 0x18]
push 1
push ecx
call fcn.100b1180
mov edx, dword [esp + 0x24]
push 1
push edx
call fcn.100b1180
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.1008f770
add esp, 0x18
test eax, eax
js 0x10091a52
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.1008f770
add esp, 0x18
test eax, eax
jns 0x10091b1a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10091ad7
mov esi, dword [eax + 8]
jmp 0x10091ad9
xor esi, esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10091aeb
push eax
call dword [0x10100284]
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10091b02
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.100b1180
mov ecx, dword [esp + 0x24]
push 1
push ecx
jmp 0x10091a65
cmp dword [esp + 0x60], 4
jbe 0x10091b3e
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 0x10091b8d
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.1008ff10
mov ecx, dword [esp + 0x24]
push 1
push ecx
call fcn.100b1180
mov edx, dword [esp + 0x30]
push 1
push edx
call fcn.100b1180
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 [0x100fce44]
add esp, 0x18
test eax, eax
je 0x10091c08
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.1008ff10
mov edx, dword [esp + 0x24]
push 1
push edx
call fcn.100b1180
mov eax, dword [esp + 0x30]
push 1
push eax
call fcn.100b1180
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 [0x1010028c], 0
je 0x10091d64
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 0x10091cc9
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 0x10091ca4
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 0x100d5104
call edi
add eax, 0x40
push eax
call esi
sub dword [esp + 0x58], 8
add esp, 0x10
dec ebx
jns 0x10091c80
push 0x100c9da4
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 0x10091c67
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 0x10091d64
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 0x10091d3f
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 0x100d50e8
call edi
add eax, 0x40
push eax
call esi
sub dword [esp + 0x58], 4
add esp, 0xc
dec ebx
jns 0x10091d20
push 0x100c9da4
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 0x10091d06
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 0x10091d83
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 [0x100fce2c]
add esp, 0x28
test eax, eax
je 0x10091dc6
mov dword [esp + 0x58], 0
cmp dword [0x1010028c], 0
je 0x10091e8e
mov eax, dword [0x10100290]
mov edi, dword [sym.imp.MSVCR100.dll_printf]
test eax, eax
je 0x10091ded
push eax
push str.Starting_at__d_n
call edi
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10091dfa
mov ebx, dword [ebx + 0x18]
jmp 0x10091dfc
mov ebx, eax
push str.src_is_n
call edi
add esp, 4
xor esi, esi
jmp 0x10091e10
mov ecx, dword [0x10100290]
add ecx, esi
mov edx, dword [ebx + ecx*4]
push edx
push 0x100d50cc
call edi
inc esi
add esp, 8
cmp esi, 0x14
jl 0x10091e10
push 0x100c9da4
call edi
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x10091e46
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 0x18]
jmp 0x10091e4a
mov ebx, dword [esp + 0x28]
push str.dst_is__n
call edi
add esp, 4
xor esi, esi
jmp 0x10091e60
mov ecx, dword [0x10100290]
add ecx, esi
mov edx, dword [ebx + ecx*4]
push edx
push 0x100d50cc
call edi
inc esi
add esp, 8
cmp esi, 0x14
jl 0x10091e60
push 0x100c9da4
call edi
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x10091eb7
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push esi
push eax
mov eax, dword [esp + 0x24]
push ecx
call fcn.10091480
add esp, 0xc
test eax, eax
jns 0x10091eb7
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.1008ff10
mov ecx, dword [esp + 0x24]
push 1
push ecx
call fcn.100b1180
mov edx, dword [esp + 0x30]
push 1
push edx
call fcn.100b1180
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 [0x10100288], 0
je 0x10091f1c
push 1
push 0xe10
call dword [0x1010029c]
add esp, 8
mov eax, dword [esp + 0x58]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18