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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
mov ebp, dword [esp + 0xbc]
mov edi, ecx
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp]
mov esi, dword [ebp + 4]
mov edx, dword [eax + 4]
cmp ecx, edx
sbb esi, 0
jae 0x100172a9
cmp edx, ecx
je 0x100172a9
jb 0x10017857
mov eax, dword [eax]
mov edx, ebp
mov bl, byte [eax + ecx]
lea ecx, [esp + 0x10]
push 7
call fcn.10013260
add esp, 4
mov eax, dword [esp + 0x10]
cmp al, 1
jne 0x100172b9
mov byte [edi + 1], ah
mov byte [edi], 1
jmp 0x100172ae
mov word [edi], 1
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x14]
mov dword [esp + 0x38], edi
mov dword [esp + 0x58], esi
mov eax, dword [ebp + 8]
mov edi, dword [ebp]
mov ecx, dword [ebp + 4]
xor ebp, ebp
mov dword [esp], eax
mov eax, dword [eax + 4]
mov edx, edi
mov dword [esp + 0xc], edi
sub edx, eax
neg edx
cmp edi, eax
mov edi, ecx
sbb edi, 0
cmovb ebp, edx
cmp ebp, esi
jae 0x100174a2
mov eax, dword [0x10551ebc]
cmp eax, 5
jb 0x10017301
mov eax, dword [0x10551ec0]
mov eax, dword [0x10411958]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0xbc]
dec eax
cmp eax, 5
jb 0x10017498
mov ecx, dword [0x10410d98]
test ecx, ecx
je 0x10017498
mov al, 1
cmp ecx, 1
je 0x1001733b
cmp ecx, 2
jne 0x100176fe
mov al, 2
movzx edx, al
mov ecx, 0x10410d98
call fcn.10109ff0
test al, al
je 0x10017498
mov ecx, dword [0x10410d9c]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x10017801
mov edi, dword [ecx + 0x2c]
mov edx, dword [ecx + 0x34]
mov esi, dword [ecx + 0x38]
cmp eax, 1
mov dword [esp + 0x94], 0
mov dword [esp + 0x3c], 0x1036e380
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], str.formatter_errorfailed_to_write_whole_buffer
mov dword [esp + 0x50], 0
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], esi
je 0x10017801
cmp eax, 2
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
jbe 0x10017801
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], esi
xor edi, edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
mov eax, dword [eax + 4]
mov esi, edx
sub esi, eax
neg esi
cmp edx, eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x3c]
sbb eax, 0
lea eax, [esp + 0x94]
cmovb edi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea esi, [esp + 0x74]
lea edx, [esp + 0x58]
mov dword [esp + 0x18], 0x1036dbfc
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
lea esi, [esp + 0x5c]
lea edx, [esp + 0x70]
mov dword [esp + 0x24], 0x1036dc24
mov dword [esp + 0x70], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
lea esi, [esp + 0x10]
lea edx, [ecx + 0x2c]
mov dword [esp + 0x30], 0x1036dc24
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], 3
mov dword [esp + 0x90], edx
lea edx, [esp + 0x88]
call fcn.1010a850
mov word [ebx], 0x201
jmp 0x100172ae
mov ebp, esi
test bl, bl
js 0x100174de
mov edx, dword [esp + 0xbc]
lea ecx, [esp + 0x10]
push ebp
call fcn.10013ba0
add esp, 4
movsd xmm0, qword [esp + 0x10]
mov eax, dword [esp + 0x38]
movsd xmm1, qword [esp + 0x18]
movsd qword [eax + 0xc], xmm1
movsd qword [eax + 4], xmm0
mov byte [eax], 0
jmp 0x100172ae
mov esi, dword [esp + 0xc]
cmp esi, eax
sbb ecx, 0
jae 0x100174fa
cmp eax, esi
mov ecx, esi
jb 0x10017855
mov eax, dword [esp]
add ecx, dword [eax]
jmp 0x10017501
xor edx, edx
mov ecx, str.formatter_errorfailed_to_write_whole_buffer
cmp edx, ebp
jb 0x10017812
mov ebx, dword [esp + 4]
lea edx, [ebp + ebp]
mov esi, ecx
mov edi, dword [ebx + 0x2c]
lea eax, [ebx + 0x24]
mov dword [esp + 8], eax
sub edi, dword [ebx + 0x28]
cmp edi, edx
jae 0x1001752d
mov ecx, dword [esp + 8]
call fcn.100080d0
test ebp, ebp
je 0x10017669
mov ecx, esi
mov esi, dword [esp + 4]
xor edi, edi
lea eax, [esi + 0x2c]
mov dword [esp + 0x54], eax
jmp 0x10017562
mov edi, dword [edi + ebp*8 + 0x1036e3a8]
mov ebp, dword [esp]
inc ecx
dec ebp
je 0x1001765b
cmp edi, 0x100
jae 0x10017793
movzx ebx, byte [ecx]
shl edi, 7
mov dl, 1
mov dword [esp + 0x34], edx
shr ebx, 4
movzx eax, byte [edi + ebx*8 + 0x1036e3ad]
test al, 4
jne 0x10017664
test al, 2
mov dword [esp + 0xc], ecx
je 0x100175df
mov eax, dword [esi + 0x28]
movzx edx, byte [edi + ebx*8 + 0x1036e3ac]
cmp dword [esi + 0x2c], eax
jne 0x100175c1
mov ecx, dword [esp + 8]
mov byte [esp], dl
mov edx, 1
call fcn.100080d0
mov esi, dword [esp + 4]
movzx edx, byte [esp]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov byte [ecx + eax], dl
mov eax, dword [esi + 0x28]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esi + 0x2c]
ja 0x100177a9
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], eax
mov edi, dword [edi + ebx*8 + 0x1036e3a8]
mov dword [esp], ebp
cmp edi, 0xff
ja 0x10017793
movzx ebp, byte [ecx]
shl edi, 7
and ebp, 0xf
movzx ebx, byte [edi + ebp*8 + 0x1036e3ad]
test bl, 4
jne 0x10017664
test bl, 2
je 0x10017550
mov eax, dword [esi + 0x28]
mov bh, byte [edi + ebp*8 + 0x1036e3ac]
cmp dword [esi + 0x2c], eax
jne 0x10017638
mov ecx, dword [esp + 8]
mov edx, 1
call fcn.100080d0
mov esi, dword [esp + 4]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov byte [ecx + eax], bh
mov eax, dword [esi + 0x28]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esi + 0x2c]
ja 0x100177a9
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], eax
jmp 0x10017550
test bl, 1
jne 0x10017669
test edi, edi
je 0x10017669
jmp 0x1001774c
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push dword [eax + 0x28]
call fcn.10007f70
add esp, 4
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
test bl, 1
jne 0x100176a3
mov edi, 0x103659b0
mov dword [esp + 0x34], 0
jmp 0x1001774c
mov ecx, dword [esp + 0x18]
shr ebx, 5
sub ebp, ebx
add ecx, ebx
add esi, ebx
je 0x100176d7
cmp ecx, esi
jbe 0x10017715
call sub.KERNEL32.dll_GetProcessHeap
push esi
push ebp
push 0
push eax
call sub.KERNEL32.dll_HeapReAlloc
test eax, eax
jne 0x10017717
mov ecx, esi
mov edx, 1
call fcn.100067d0
ud2
xor esi, esi
mov edi, 0x10397ea4
mov eax, str.formatter_errorfailed_to_write_whole_buffer
test ecx, ecx
je 0x100176fa
call sub.KERNEL32.dll_GetProcessHeap
push ebp
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, str.formatter_errorfailed_to_write_whole_buffer
xor edx, edx
jmp 0x1001772e
mov ecx, 0x10410d98
call fcn.10109f40
test al, al
jne 0x1001733b
jmp 0x10017498
mov eax, ebp
test al, 1
jne 0x10017727
mov edx, eax
mov edi, 0x10365998
or edx, 1
jmp 0x1001772e
mov edi, 0x103659a8
mov edx, eax
mov ecx, esi
mov dword [esp + 0x74], ebx
sub ecx, ebx
jb 0x10017866
add eax, ebx
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x34], 0
mov ebp, eax
mov edx, dword [esp + 0xbc]
mov eax, dword [edx]
add eax, dword [esp + 0x58]
jb 0x10017823
mov ecx, dword [edx + 8]
cmp eax, dword [ecx + 4]
ja 0x1001783c
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [edx + 4], 0
mov byte [eax], cl
mov byte [eax + 1], 6
mov dword [eax + 4], ebp
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], edi
jmp 0x100172ae
mov ecx, edi
mov edx, 0x100
push 0x103763a8
call fcn.10008590
add esp, 4
ud2
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], 0x1039a5b8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], fcn.10008600
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 2
mov dword [esp + 0x44], edx
mov edx, 0x1039a5c8
mov dword [esp + 0x48], fcn.10008600
call fcn.10008700
ud2
mov ecx, 0x103986bd
mov edx, 0x22
push 0x1036e388
jmp 0x10017832
mov ecx, ebp
push 0x1036e398
call fcn.10008b80
add esp, 4
ud2
mov ecx, 0x103a44ec
mov edx, 8
push 0x103a44f4
call fcn.1000a9c0
add esp, 4
ud2
mov ecx, 0x103a426e
mov edx, 0x36
push 0x103a42a4
call fcn.10008540
add esp, 4
ud2
mov edx, eax
push 0x103a44cc
call fcn.10009b70
add esp, 4
ud2
lea eax, [esp + 0x74]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], 0x103a4354
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x5c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x10011120
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x10]
mov edx, 0x10399abc
mov dword [esp + 0x48], 0x10011120
mov dword [esp + 0x24], 2
call fcn.10008700
ud2