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

Disassembly:
push 0xffffffffffffffff
push 0x5a0a80
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
push 1
push str.install.txt
mov byte [esp + 0x1f], 0
call fcn.004bbf90
mov esi, eax
add esp, 8
test esi, esi
je 0x4d4763
push 2
push 0
push esi
call fcn.004b9ab0
push esi
call fcn.004b9ad0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jle 0x4d4755
push 1
push 0
push esi
call fcn.004b9ab0
lea ebx, [ebp + 1]
push ebx
call fcn.0055ce46
push ebx
mov edi, eax
push 0
push edi
call fcn.0055da20
push ebp
push edi
push esi
call fcn.004b9ae0
mov ecx, dword [esp + 0x4c]
add esp, 0x28
push edi
add ecx, 0x1c
call fcn.00497d30
push edi
call fcn.0055f5cf
mov edi, dword [esp + 0x28]
add esp, 4
jmp 0x4d475a
mov byte [esp + 0x17], 1
push esi
call fcn.004b9a90
add esp, 4
lea ebx, [edi + 0x1c]
mov ecx, ebx
call fcn.00497f40
lea esi, [edi + 4]
push ebx
mov ecx, esi
call fcn.004d3f90
lea ecx, [esp + 0x18]
mov dword [edi + 0x10], eax
call fcn.004b9920
xor ebp, ebp
push ebp
push ecx
lea eax, [edi + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov dword [esp + 0x74], ebp
call fcn.004971d0
lea ecx, [esp + 0x20]
call fcn.004bba90
test al, al
je 0x4d4afb
push 2
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.004b99c0
mov eax, dword [esp + 0x20]
cmp al, 0x3c
jne 0x4d47e5
cmp ah, 0x3e
jne 0x4d47e5
lea ecx, [esp + 0x18]
call fcn.004b9960
mov ecx, edi
call fcn.004d4090
mov ecx, edi
call fcn.004d1db0
jmp 0x4d4b83
push 1
push ebp
lea ecx, [esp + 0x20]
call fcn.004b9980
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov byte [esp + 0x74], 1
call fcn.004d17e0
test al, al
jne 0x4d483e
mov eax, dword [esp + 0x44]
cmp eax, ebp
je 0x4d482d
push eax
call fcn.0055d39b
add esp, 4
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
jmp 0x4d4b83
cmp byte [esp + 0x20], 0x49
jne 0x4d4aed
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004cfb40
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 2
call fcn.00497f40
cmp byte [esp + 0x17], 0
je 0x4d487c
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00497360
push ebx
mov ecx, esi
call fcn.004d3f90
lea edx, [esp + 0x20]
mov dword [edi + 0x10], eax
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x34], ebp
call fcn.004d17e0
test al, al
je 0x4d4adf
lea esp, [esp]
movsx eax, byte [esp + 0x20]
sub eax, 0x49
je 0x4d4a89
sub eax, 2
je 0x4d4951
sub eax, 0xa
jne 0x4d4adf
mov eax, dword [esp + 0x44]
cmp eax, ebp
je 0x4d48e0
mov edx, dword [esp + 0x48]
sub edx, eax
jne 0x4d48e9
call fcn.0055d776
mov eax, dword [esp + 0x44]
movzx ebx, word [eax]
cmp bx, 0x400
mov dword [esp + 0x28], ebx
ja 0x4d4adf
lea eax, [esp + 0x1c]
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.004d3f90
mov edx, dword [eax + 4]
cmp edx, ebp
jne 0x4d4915
xor eax, eax
jmp 0x4d492a
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx ecx, bx
cmp eax, ecx
ja 0x4d4ac1
add ecx, 1
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004d3f90
mov ecx, eax
call fcn.004d34c0
jmp 0x4d4ac1
mov eax, dword [esp + 0x44]
cmp eax, ebp
je 0x4d4961
mov edx, dword [esp + 0x48]
sub edx, eax
jne 0x4d496a
call fcn.0055d776
mov eax, dword [esp + 0x44]
movzx edx, word [eax]
mov ecx, dword [esp + 0x48]
movzx ebp, dx
sub ecx, eax
lea edx, [ebp + 2]
cmp edx, ecx
ja 0x4d4adf
cmp ecx, 2
ja 0x4d498f
call fcn.0055d776
mov eax, dword [esp + 0x44]
add eax, 2
push ebp
push eax
lea ecx, [esp + 0x34]
call fcn.00496dd0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
mov byte [esp + 0x68], 4
mov dword [esp + 0x30], eax
jbe 0x4d49bf
call fcn.0055d776
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
lea ebx, [esp + 0x40]
mov esi, ecx
jbe 0x4d49d6
call fcn.0055d776
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], esi
add esi, 2
cmp esi, eax
lea edi, [esp + 0x40]
ja 0x4d49e9
cmp esi, ecx
jae 0x4d49ee
call fcn.0055d776
mov dword [esp + 0x3c], esi
add esi, ebp
cmp esi, dword [edi + 8]
ja 0x4d49fe
cmp esi, dword [edi + 4]
jae 0x4d4a03
call fcn.0055d776
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
push esi
push edi
lea ecx, [esp + 0x64]
call fcn.004d1570
movzx ecx, word [esp + 0x28]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x28]
push edx
add ecx, 4
mov byte [esp + 0x78], 5
call fcn.004d3f90
mov ecx, eax
call fcn.004cf810
mov ecx, eax
call fcn.004d24d0
mov ecx, eax
call fcn.004d1170
mov eax, dword [esp + 0x54]
xor esi, esi
cmp eax, esi
je 0x4d4a67
push eax
call fcn.0055d39b
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov byte [esp + 0x68], 2
call fcn.00497320
mov edi, dword [esp + 0x24]
xor ebp, ebp
jmp 0x4d4ac1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004cfb40
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 3
call fcn.00497360
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], 2
call fcn.00497320
lea ecx, [esp + 0x1c]
call fcn.00497f40
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.004d17e0
test al, al
jne 0x4d48b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 1
call fcn.00497320
lea ecx, [esp + 0x40]
call fcn.004d00a0
jmp 0x4d4b83
push 1
push str.install.txt
call fcn.004bbf90
mov edi, eax
add esp, 8
test edi, edi
je 0x4d4b6f
push 2
push 0
push edi
call fcn.004b9ab0
push edi
call fcn.004b9ad0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jle 0x4d4b66
push 1
push 0
push edi
call fcn.004b9ab0
lea eax, [ebp + 1]
push eax
call fcn.0055ce46
mov esi, eax
lea eax, [ebp + 1]
push eax
push 0
push esi
call fcn.0055da20
push ebp
push esi
push edi
call fcn.004b9ae0
add esp, 0x28
push esi
mov ecx, ebx
call fcn.00497d30
push esi
call fcn.0055f5cf
add esp, 4
push edi
call fcn.004b9a90
add esp, 4
mov ecx, dword [esp + 0x24]
push ebx
add ecx, 4
call fcn.004d3f90
mov edx, dword [esp + 0x24]
mov dword [edx + 0x10], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 0xffffffff
call fcn.004b9930
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret