Function at 0x4a1d58
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe44
mov eax, 0x67ffd8
push ebx
push esi
push edi
call fcn.0061509c
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], 1
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x54], eax
xor ecx, ecx
mov dword [ebp - 0x58], 0xffffffff
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x6c], ecx
cmp dword [ebp + 0xc], 0
jne 0x4a1dd2
mov ebx, 4
jmp 0x4a2b98
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x3a], 3
je 0x4a1df6
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0x3a], 5
je 0x4a1df6
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0x3a], 6
je 0x4a1df6
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x3a], 8
jne 0x4a1e07
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4a2bd8
push 0x104
call fcn.00613cd0
pop ecx
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4a1e25
mov ebx, 3
jmp 0x4a2b98
push 0x104
push 0
mov eax, dword [ebp - 0x54]
push eax
call fcn.006146f0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004a3830
pop ecx
mov dword [ebp - 0x44], eax
cmp dword [ebp + 0x10], 0
je 0x4a1e72
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
movzx edx, word [eax + 0xc]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004a3830
pop ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0052b37c
cmp dword [ebp - 0x38], 0
pop ecx
je 0x4a1e99
mov edx, dword [ebp - 0x38]
test byte [edx + 8], 0x20
jne 0x4a1e99
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4a1e82
cmp dword [ebp - 0x38], 0
jne 0x4a1ea9
mov ebx, 0x58
jmp 0x4a2b98
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0
jne 0x4a1ebc
mov ebx, 0x58
jmp 0x4a2b98
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 4]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x4a1edc
inc dword [ebp - 0x64]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4a1ecb
push 0x2a
call fcn.004e5968
pop ecx
mov dword [ebp - 0x70], eax
test eax, eax
je 0x4a1ef7
mov edx, dword [ebp - 0x70]
push edx
call fcn.00532628
pop ecx
jmp 0x4a1efa
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x4a1f0d
mov ebx, 3
jmp 0x4a2b98
push 0x206
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00532834
add esp, 8
xor edx, edx
mov dword [ebp - 0x68], edx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4a2b8c
mov edx, dword [ebp - 0x64]
push edx
inc dword [ebp - 0x68]
mov ecx, dword [ebp - 0x68]
push ecx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00532934
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x4a2b98
xor eax, eax
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x34]
cmp byte [edx + 0x3a], 1
je 0x4a1f7b
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + 0x3a], 0xf
je 0x4a1f7b
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x3a], 4
jne 0x4a2b7a
mov edx, dword [ebp - 0x54]
mov esi, str.BOOT.INI
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edx, edx
mov dword [ebp - 0x74], edx
lea edx, [ebp - 0x60]
mov ecx, dword [ebp - 0x74]
push ecx
mov eax, dword [ebp - 0x34]
push eax
push edx
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0052692c
add esp, 0x10
mov eax, dword [ebp - 0x74]
push eax
mov edx, dword [ebp - 0x34]
push edx
push 0
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.005269a8
add esp, 0x10
test eax, eax
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
mov edx, dword [ebp - 0x74]
or edx, 0x1004
push edx
mov ecx, dword [ebp - 0x54]
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00526588
add esp, 0x18
mov ebx, eax
test ebx, ebx
je 0x4a2011
cmp ebx, 0x1f8
je 0x4a2011
cmp dword [ebp - 0x34], 0
je 0x4a1ffe
mov eax, dword [ebp - 0x34]
mov dl, byte [eax + 0x3b]
jmp 0x4a2000
mov dl, 0x30
movsx eax, dl
push eax
push 0x680055
call fcn.004adfc8
add esp, 8
test ebx, ebx
jne 0x4a2b4f
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0xa4], eax
xor edx, edx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x3c], edx
push ecx
mov eax, dword [ebp - 0x28]
push eax
call fcn.005268d0
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4a2b98
cmp dword [ebp - 0x8c], 0xffffffff
jne 0x4a2064
cmp dword [ebp - 0x90], 0xffffffff
jne 0x4a2064
mov ebx, 0x134
jmp 0x4a2b98
cmp dword [ebp - 0x8c], 0
jne 0x4a2074
cmp dword [ebp - 0x90], 0xffffffff
jbe 0x4a2080
mov ebx, 0x14a
jmp 0x4a2b98
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x4a210f
mov edx, dword [ebp - 0x88]
inc edx
push edx
call fcn.00613cd0
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4a20b6
mov ebx, 3
jmp 0x4a2b98
mov eax, dword [ebp - 0x88]
inc eax
push eax
push 0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.006146f0
add esp, 0xc
lea ecx, [ebp - 0x94]
push ecx
mov eax, dword [ebp - 0x88]
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00526828
add esp, 0x10
mov ebx, eax
test ebx, ebx
jne 0x4a20f9
cmp dword [ebp - 0x94], 0
jne 0x4a2103
xor eax, eax
mov dword [ebp - 0x88], eax
jmp 0x4a210f
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x88], edx
cmp dword [ebp - 0x88], 0
je 0x4a2adc
mov ecx, dword [ebp - 0x88]
lea ecx, [ecx + ecx*2]
push ecx
call fcn.00613cd0
pop ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4a213f
mov ebx, 3
jmp 0x4a2b98
mov eax, dword [ebp - 0x88]
lea eax, [eax + eax*2]
push eax
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.006146f0
add esp, 0xc
cmp dword [ebp - 0x28], 0
je 0x4a2172
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0052673c
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x28], eax
push 0
push 0
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x74]
or ecx, 0x1040
push ecx
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00526588
add esp, 0x18
mov ebx, eax
test ebx, ebx
je 0x4a21bb
cmp dword [ebp - 0x34], 0
je 0x4a21a8
mov eax, dword [ebp - 0x34]
mov dl, byte [eax + 0x3b]
jmp 0x4a21aa
mov dl, 0x30
movsx eax, dl
push eax
push str.UpdateNTBootFiles:_Unable_to_update_boot.ini_on_partition__c_n
call fcn.004adfc8
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x88]
mov byte [ecx + eax], 0
test ebx, ebx
jne 0x4a2adc
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
cmp dword [ebp + 8], 2
jne 0x4a25cb
mov eax, dword [ebp - 0x88]
push eax
push ebx
push esi
call fcn.00614bc4
add esp, 0xc
mov edx, dword [ebp - 0x4c]
add esi, dword [ebp - 0x88]
lea eax, [ebp - 0x1bc]
push edx
mov ecx, dword [ebp - 0x50]
push ecx
push str.multi_0_disk_0_rdisk__d_partition__d_
push eax
call fcn.00618418
add esp, 0x10
push 0x6800f7
push ebx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x4a2244
push str._OPERATING_SYSTEMS_
push ebx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x4a2a6f
lea edx, [ebp - 0x1bc]
push edx
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x4a23be
lea eax, [ebp - 0x1bc]
push eax
call fcn.006148a0
pop ecx
add eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], eax
push 0x22
mov edx, dword [ebp - 0x98]
push edx
call fcn.006149ad
add esp, 8
inc eax
mov dword [ebp - 0x9c], eax
xor edx, edx
lea eax, [ebp - 0x1bc]
jmp 0x4a22c7
mov ecx, dword [ebp - 0x9c]
inc edx
mov cl, byte [ecx]
mov byte [eax], cl
inc dword [ebp - 0x9c]
inc eax
mov ecx, dword [ebp - 0x9c]
movsx ecx, byte [ecx]
cmp ecx, 0x22
jne 0x4a22b5
mov byte [ebp + edx - 0x1bc], 0
mov dword [ebp - 0x9c], ebx
jmp 0x4a238b
mov eax, dword [ebp - 0x9c]
movsx edx, byte [eax]
cmp edx, 0x28
jne 0x4a2368
mov eax, dword [ebp - 0x9c]
movsx edx, byte [eax + 1]
cmp edx, 0x23
jne 0x4a2368
add dword [ebp - 0x9c], 2
xor edx, edx
lea eax, [ebp - 0x83]
jmp 0x4a2325
mov byte [eax], cl
inc edx
inc dword [ebp - 0x9c]
inc eax
mov ecx, dword [ebp - 0x9c]
mov cl, byte [ecx]
movsx ebx, cl
cmp ebx, 0x29
jne 0x4a231b
mov byte [ebp + edx - 0x83], 0
lea eax, [ebp - 0x83]
push eax
call fcn.0061b2ec
pop ecx
cmp eax, dword [ebp - 0xa4]
jl 0x4a236e
lea edx, [ebp - 0x83]
push edx
call fcn.0061b2ec
pop ecx
inc eax
mov dword [ebp - 0xa4], eax
jmp 0x4a236e
inc dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x9c]
movsx eax, byte [ecx]
cmp eax, 0xd
je 0x4a238b
mov edx, dword [ebp - 0x9c]
cmp byte [edx], 0
jne 0x4a22ed
lea ecx, [ebp - 0x1bc]
push ecx
mov eax, dword [ebp - 0x9c]
push eax
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x4a236e
cmp dword [ebp - 0xa4], 0
jne 0x4a23be
mov dword [ebp - 0xa4], 1
cmp dword [ebp - 0x98], 0
je 0x4a2a6f
push esi
mov edi, esi
mov eax, edi
mov esi, 0x68011f
mov ecx, 5
lea edx, [ebp - 0x83]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
push 0xa
push edx
add esi, 0x15
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0061b840
add esp, 0xc
lea eax, [ebp - 0x83]
jmp 0x4a2405
mov dl, byte [eax]
mov byte [esi], dl
inc esi
inc eax
cmp byte [eax], 0
jne 0x4a23ff
push esi
mov edi, esi
mov eax, edi
mov esi, str._partition_
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea edx, [ebp - 0x83]
push 0xa
push edx
mov ecx, dword [ebp - 0x44]
add esi, 0xb
push ecx
call fcn.0061b840
add esp, 0xc
lea eax, [ebp - 0x83]
jmp 0x4a243e
mov dl, byte [eax]
mov byte [esi], dl
inc esi
inc eax
cmp byte [eax], 0
jne 0x4a2438
push esi
mov edi, esi
mov esi, 0x680141
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
inc esi
jmp 0x4a2464
mov edx, dword [ebp - 0xa0]
mov cl, byte [edx]
mov byte [esi], cl
inc dword [ebp - 0xa0]
inc esi
mov eax, dword [ebp - 0xa0]
movsx edx, byte [eax]
cmp edx, 0x3d
je 0x4a247d
mov ecx, dword [ebp - 0xa0]
cmp byte [ecx], 0
jne 0x4a2453
push esi
mov edi, esi
mov eax, edi
mov esi, 0x680143
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
push 0x22
mov edx, dword [ebp - 0x98]
add esi, 2
push edx
call fcn.006149ad
add esp, 8
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x4a2533
inc dword [ebp - 0x98]
jmp 0x4a24cb
mov ecx, dword [ebp - 0x98]
mov al, byte [ecx]
mov byte [esi], al
inc dword [ebp - 0x98]
inc esi
mov edx, dword [ebp - 0x98]
movsx ecx, byte [edx]
cmp ecx, 0x22
je 0x4a250e
mov eax, dword [ebp - 0x98]
cmp byte [eax], 0
je 0x4a250e
mov edx, dword [ebp - 0x98]
movsx ecx, byte [edx]
cmp ecx, 0xd
je 0x4a250e
mov eax, dword [ebp - 0x98]
movsx edx, byte [eax]
cmp edx, 0xa
je 0x4a250e
mov ecx, dword [ebp - 0x98]
movsx eax, byte [ecx]
cmp eax, 0x28
jne 0x4a24ba
mov edx, dword [ebp - 0x98]
movsx ecx, byte [edx]
cmp ecx, 0x28
jne 0x4a2533
push 0x22
mov eax, dword [ebp - 0x98]
push eax
call fcn.006149ad
add esp, 8
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x1bc]
push edx
push str.___d__
push ecx
call fcn.00618418
add esp, 0xc
lea eax, [ebp - 0x1bc]
jmp 0x4a255c
mov dl, byte [eax]
inc eax
mov byte [esi], dl
inc esi
cmp byte [eax], 0
jne 0x4a2556
cmp dword [ebp - 0x98], 0
je 0x4a25b8
mov ecx, dword [ebp - 0x98]
movsx eax, byte [ecx]
cmp eax, 0x22
jne 0x4a25b8
inc dword [ebp - 0x98]
jmp 0x4a2591
mov edx, dword [ebp - 0x98]
mov cl, byte [edx]
mov byte [esi], cl
inc dword [ebp - 0x98]
inc esi
mov eax, dword [ebp - 0x98]
cmp byte [eax], 0
je 0x4a25b8
mov edx, dword [ebp - 0x98]
movsx ecx, byte [edx]
cmp ecx, 0xd
je 0x4a25b8
mov eax, dword [ebp - 0x98]
movsx edx, byte [eax]
cmp edx, 0xa
jne 0x4a2580
push esi
mov edi, esi
mov esi, 0x68014e
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4a2a6f
push 0x680151
push ebx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x4a2611
add dword [ebp - 0x7c], 8
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xa8], edx
jmp 0x4a25f7
inc dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa8]
movsx eax, byte [ecx]
cmp eax, 0xd
jne 0x4a25f1
mov edx, dword [ebp - 0xa8]
sub edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
push str._operating_systems_
push ebx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4a2645
mov eax, dword [ebp - 0x78]
sub eax, ebx
test eax, eax
jbe 0x4a263c
mov dl, byte [ebx]
mov byte [esi], dl
inc ebx
inc esi
dec eax
test eax, eax
ja 0x4a2631
mov dword [ebp - 0x40], 1
jmp 0x4a264a
xor ecx, ecx
mov dword [ebp - 0x40], ecx
push 0x68016e
push ebx
call fcn.00614b7c
add esp, 8
test eax, eax
jne 0x4a2661
mov dword [ebp - 0x78], ebx
jmp 0x4a2690
push str.multi_0_disk_0_rdisk_
push ebx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4a28a8
mov eax, dword [ebp - 0x78]
sub eax, ebx
test eax, eax
jbe 0x4a2690
mov dl, byte [ebx]
mov byte [esi], dl
inc ebx
inc esi
dec eax
test eax, eax
ja 0x4a2685
xor ecx, ecx
lea eax, [ebp - 0x83]
mov dword [ebp - 0xac], ecx
add dword [ebp - 0x78], 0x15
xor edx, edx
jmp 0x4a26b2
mov ecx, dword [ebp - 0x78]
inc edx
mov cl, byte [ecx]
mov byte [eax], cl
inc dword [ebp - 0x78]
inc eax
mov ecx, dword [ebp - 0x78]
movsx ecx, byte [ecx]
cmp ecx, 0x29
jne 0x4a26a6
mov byte [ebp + edx - 0x83], 0
lea eax, [ebp - 0x83]
push eax
call fcn.0061b2ec
pop ecx
cmp eax, dword [ebp - 0x48]
jne 0x4a2878
push 0x68019a
push ebx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4a2878
add dword [ebp - 0x78], 0xa
xor edx, edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x83]
jmp 0x4a271f
mov ecx, dword [ebp - 0xb0]
inc edx
mov cl, byte [ecx]
mov byte [eax], cl
inc dword [ebp - 0xb0]
inc eax
mov ecx, dword [ebp - 0xb0]
movsx ecx, byte [ecx]
cmp ecx, 0x29
jne 0x4a270d
mov byte [ebp + edx - 0x83], 0
lea eax, [ebp - 0x83]
push eax
call fcn.0061b2ec
pop ecx
cmp eax, dword [ebp - 0x44]
jb 0x4a2878
cmp dword [ebp + 8], 4
jne 0x4a2811
cmp eax, dword [ebp - 0x44]
jne 0x4a27ae
cmp dword [ebp - 0x7c], 0
je 0x4a277f
mov edx, dword [ebp - 0x80]
push edx
push ebx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.0061496c
add esp, 0xc
test eax, eax
jne 0x4a277f
mov dword [ebp - 0x3c], 1
jmp 0x4a277f
inc ebx
movsx edx, byte [ebx]
cmp edx, 0xd
je 0x4a278f
cmp byte [ebx], 0
jne 0x4a277e
jmp 0x4a278f
inc ebx
movsx ecx, byte [ebx]
cmp ecx, 0xd
je 0x4a278e
movsx eax, byte [ebx]
cmp eax, 0xa
je 0x4a278e
mov dword [ebp - 0xac], 1
jmp 0x4a2878
lea edx, [ebp - 0x83]
push 0xa
push edx
dec eax
push eax
call fcn.0061b840
add esp, 0xc
cmp dword [ebp - 0x7c], 0
je 0x4a27e3
mov ecx, dword [ebp - 0x80]
push ecx
push ebx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.0061496c
add esp, 0xc
test eax, eax
jne 0x4a27e3
mov dword [ebp - 0x3c], 3
mov eax, dword [ebp - 0x78]
sub eax, ebx
test eax, eax
jbe 0x4a27f7
mov dl, byte [ebx]
mov byte [esi], dl
inc ebx
inc esi
dec eax
test eax, eax
ja 0x4a27ec
lea eax, [ebp - 0x83]
jmp 0x4a2803
mov byte [esi], dl
inc esi
inc eax
mov dl, byte [eax]
test dl, dl
jne 0x4a27ff
mov ebx, dword [ebp - 0xb0]
jmp 0x4a2878
cmp dword [ebp + 8], 3
jne 0x4a2878
lea edx, [ebp - 0x83]
push 0xa
push edx
inc eax
push eax
call fcn.0061b840
add esp, 0xc
cmp dword [ebp - 0x7c], 0
je 0x4a284c
mov eax, dword [ebp - 0x80]
push eax
push ebx
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.0061496c
add esp, 0xc
test eax, eax
jne 0x4a284c
mov dword [ebp - 0x3c], 2
mov eax, dword [ebp - 0x78]
sub eax, ebx
test eax, eax
jbe 0x4a2860
mov dl, byte [ebx]
mov byte [esi], dl
inc ebx
inc esi
dec eax
test eax, eax
ja 0x4a2855
lea eax, [ebp - 0x83]
jmp 0x4a286c
mov byte [esi], dl
inc esi
inc eax
mov dl, byte [eax]
test dl, dl
jne 0x4a2868
mov ebx, dword [ebp - 0xb0]
cmp dword [ebp - 0xac], 0
jne 0x4a264a
jmp 0x4a288b
mov byte [esi], al
inc ebx
inc esi
mov al, byte [ebx]
movsx edx, al
cmp edx, 0xd
je 0x4a264a
test al, al
jne 0x4a2887
jmp 0x4a264a
mov cl, byte [ebx]
inc ebx
mov byte [esi], cl
inc esi
cmp byte [ebx], 0
jne 0x4a28a2
mov byte [esi], 0
cmp dword [ebp - 0x3c], 0
je 0x4a2a6f
cmp dword [ebp - 0x40], 0
je 0x4a2a6f
mov eax, dword [ebp - 0x88]
lea eax, [eax + eax*2]
push eax
call fcn.00613cd0
pop ecx
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jne 0x4a28ed
mov ebx, 3
jmp 0x4a2b98
push str.default
mov eax, dword [ebp - 0x30]
push eax
call fcn.006149c5
mov dword [ebp - 0x7c], eax
add esp, 8
add dword [ebp - 0x7c], 8
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x7c]
sub eax, ebx
mov esi, dword [ebp - 0xb4]
test eax, eax
jbe 0x4a2922
mov dl, byte [ebx]
mov byte [esi], dl
inc ebx
inc esi
dec eax
test eax, eax
ja 0x4a2917
cmp dword [ebp - 0x3c], 1
jne 0x4a2979
jmp 0x4a292b
inc ebx
movsx ecx, byte [ebx]
cmp ecx, 0xd
jne 0x4a292a
push str.multi_0_
push ebx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x78], eax
test eax, eax
je 0x4a2965
jmp 0x4a2955
mov edx, dword [ebp - 0x78]
mov cl, byte [edx]
mov byte [esi], cl
inc dword [ebp - 0x78]
inc esi
mov eax, dword [ebp - 0x78]
movsx edx, byte [eax]
cmp edx, 0x3d
jne 0x4a294a
jmp 0x4a2a30
push esi
mov edi, esi
mov esi, 0x6801b7
mov eax, edi
movsd dword es:[edi], dword [esi]
pop esi
add esi, 3
jmp 0x4a2a30
cmp dword [ebp - 0x3c], 2
je 0x4a2989
cmp dword [ebp - 0x3c], 3
jne 0x4a2a30
push str.partition_
push ebx
call fcn.006149c5
add esp, 8
mov dword [ebp - 0x78], eax
add dword [ebp - 0x78], 0xa
mov eax, dword [ebp - 0x78]
sub eax, ebx
test eax, eax
jbe 0x4a29b2
mov dl, byte [ebx]
mov byte [esi], dl
inc ebx
inc esi
dec eax
test eax, eax
ja 0x4a29a7
xor edx, edx
mov ebx, dword [ebp - 0x78]
lea eax, [ebp - 0x83]
jmp 0x4a29c6
mov cl, byte [ebx]
inc ebx
mov byte [eax], cl
inc edx
inc eax
movsx ecx, byte [ebx]
cmp ecx, 0x29
jne 0x4a29bf
mov byte [ebp + edx - 0x83], 0
lea eax, [ebp - 0x83]
push eax
call fcn.0061b2ec
pop ecx
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0x3c], 2
jne 0x4a29f7
inc dword [ebp - 0xb8]
jmp 0x4a29fd
dec dword [ebp - 0xb8]
push 0xa
lea edx, [ebp - 0x83]
push edx
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0061b840
add esp, 0xc
lea eax, [ebp - 0x83]
jmp 0x4a2a23
mov dl, byte [eax]
mov byte [esi], dl
inc esi
inc eax
cmp byte [eax], 0
jne 0x4a2a1d
jmp 0x4a2a30
mov cl, byte [ebx]
inc ebx
mov byte [esi], cl
inc esi
cmp byte [ebx], 0
jne 0x4a2a2a
mov byte [esi], 0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xb4]
mov esi, eax
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xb4]
push eax
call fcn.00613cc0
pop ecx
push 0x200000
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.005268a8
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x4a2b98
mov edx, dword [ebp - 0x30]
push edx
call fcn.006148a0
pop ecx
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x88]
push ecx
mov eax, dword [ebp - 0x88]
push eax
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0052686c
add esp, 0x10
mov ebx, eax
test ebx, ebx
jne 0x4a2b98
mov eax, dword [ebp - 0x88]
xor edx, edx
push edx
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00526908
add esp, 0xc
cmp dword [ebp - 0x30], 0
je 0x4a2af1
mov eax, dword [ebp - 0x30]
push eax
call fcn.00613cc0
pop ecx
xor edx, edx
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x2c], 0
je 0x4a2b06
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00613cc0
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
je 0x4a2b4f
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0052673c
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0xbc]
push edx
mov ecx, dword [ebp - 0x34]
push ecx
mov eax, dword [ebp - 0x60]
push eax
mov edx, dword [ebp - 0x54]
push edx
call fcn.005269a8
add esp, 0x10
test eax, eax
je 0x4a2b4f
mov ebx, 0x137
jmp 0x4a2b98
cmp dword [ebp - 0x5c], 0
jne 0x4a2b7a
cmp dword [ebp - 0x58], 0xffffffff
je 0x4a2b7a
push 0
mov eax, dword [ebp - 0x58]
push eax
call fcn.0052b9f8
add esp, 8
mov edx, dword [ebp - 0x58]
push edx
call fcn.0052b454
pop ecx
mov dword [ebp - 0x58], 0xffffffff
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4a1f36
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00532a74
pop ecx
mov ebx, eax
push 3
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00532700
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x4a2bbc
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0052673c
add esp, 0xc
cmp dword [ebp - 0x54], 0
je 0x4a2bcc
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00613cc0
pop ecx
mov eax, ebx
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret