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

Disassembly:
sub esp, 0x25c
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [esp + 0x27c]
mov ecx, dword [0x4db83c]
push ebx
push esi
mov esi, dword [esp + 0x27c]
push edi
mov dword [esp + 0x30], esi
test eax, eax
jne 0x480c3b
mov ebx, ecx
mov dword [esp + 0x28], ebx
jmp 0x480c41
mov ebx, eax
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x27c]
cmp edi, 1
jne 0x480c9f
cmp byte [0x4f6b85], 0
jne 0x480c9f
cmp byte [0x4f6b84], 0
jne 0x480c9f
test ecx, ecx
je 0x480c9f
mov eax, dword [0x4f7b18]
cmp eax, edi
je 0x480c71
cmp eax, 2
jne 0x480c9f
push 1
push 0xa2
push ebx
call fcn.00422510
push 1
push 0xa6
push ebx
call fcn.00422510
push 1
push 0xa1
push ebx
call fcn.00422510
mov byte [0x4f6b85], 1
test ebx, ebx
je 0x4816fd
cmp edi, 1
jne 0x480cc3
cmp byte [0x4f6b85], 0
jne 0x480cc3
cmp byte [esp + 0x284], 0
je 0x4816fd
mov eax, dword [0x4f7b18]
cmp eax, 7
je 0x4816fd
cmp eax, 0xa
je 0x4816fd
mov edi, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x27c]
test esi, esi
mov esi, dword [esp + 0x278]
jne 0x480d37
mov eax, dword [esp + 0x280]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x96
add ecx, 0x32
push ecx
push eax
call fcn.004464a0
test al, al
jne 0x480d37
cmp dword [0x4f7b18], 8
jne 0x4816fc
cmp edi, esi
jne 0x4816fc
cmp dword [esp + 0x274], ebp
jne 0x4816fc
mov edx, esi
or edx, ebp
jne 0x480d4a
or edi, dword [esp + 0x274]
mov byte [esp + 0x13], dl
je 0x480d4f
mov byte [esp + 0x13], 1
cmp byte [0x4f6b4a], 0
jne 0x480d72
cmp byte [0x4f6b49], 0
jne 0x480d72
cmp byte [esp + 0x13], 0
jne 0x480d72
call fcn.0049f95d
mov dword [0x4f6bd0], eax
mov eax, esi
or eax, ebp
jne 0x480d8d
mov esi, 1
xor ebp, ebp
mov dword [esp + 0x278], esi
mov dword [esp + 0x27c], ebp
mov ecx, dword [esp + 0x274]
mov edx, dword [esp + 0x270]
push ebp
push esi
push ecx
push edx
call fcn.004656e0
cmp dword [0x4f7b18], 0
mov edi, eax
mov dword [esp + 0x38], edi
je 0x480e7d
cmp dword [0x4f7b1c], 0
je 0x480e7d
mov eax, dword [esp + 0x270]
or eax, dword [esp + 0x274]
jne 0x480e7d
push 0x1e8
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.0049f060
mov edx, dword [0x4f6b80]
add esp, 0xc
push edx
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], 0x58
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], 0x7b
mov dword [esp + 0x88], 4
call fcn.00480960
mov ecx, 0x4f6c18
lea eax, [esp + 0x8c]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x480e50
test dl, dl
je 0x480e4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x480e50
add eax, 2
add ecx, 2
test dl, dl
jne 0x480e30
xor eax, eax
jmp 0x480e55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x480e7d
lea ecx, [esp + 0x74]
push ecx
push 1
call dword [0x4b13f8]
push 0x200
lea edx, [esp + 0x90]
push edx
push 0x4f6c18
call fcn.00465f20
cmp byte [0x4f6b85], 0
je 0x48117d
cmp dword [0x4f7b1c], 0
je 0x48117d
cmp dword [esp + 0x280], 1
jne 0x48117d
mov ebx, dword [0x4f6b80]
cmp ebx, edi
jne 0x480ec9
push 0xbb8
push 5
call fcn.004464a0
test al, al
je 0x481111
mov ebx, dword [0x4f6b80]
mov ecx, edi
shl ecx, 4
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov esi, edx
shl ebx, 4
shr esi, 0x1f
add esi, edx
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
cmp esi, ebx
je 0x481095
call fcn.0047f570
mov ebp, dword [0x4b10d0]
cmp eax, 0x20
push 0
setl byte [esp + 0x2f]
call ebp
push 0
mov ebx, eax
call ebp
mov ecx, dword [0x4f7b1c]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [0x4b1598]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push ecx
lea eax, [edx + edx]
add edi, edi
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], edi
call dword [0x4b10f8]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
push 0x18
push eax
call dword [0x4b10cc]
movzx ecx, word [esp + 0x6e]
movzx edx, word [esp + 0x6c]
mov eax, dword [esp + 0x30]
push 0
push ecx
push edx
push edi
push eax
call dword [0x4b10ac]
push eax
push ebp
mov dword [esp + 0x4c], eax
call dword [0x4b10f8]
cmp byte [esp + 0x2b], 0
mov dword [esp + 0x50], eax
jne 0x480fa4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], ecx
xor edx, edx
cmp dword [0x4e2a74], 0xffffffff
setne dl
add edi, 0xffffffff
mov dword [esp + 0x54], edx
js 0x481029
lea esp, [esp]
xor esi, esi
cmp dword [esp + 0x30], esi
jbe 0x481020
mov eax, dword [esp + 0x30]
shr eax, 1
sub eax, dword [esp + 0x54]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
cmp esi, eax
jb 0x481006
add eax, 2
cmp esi, eax
ja 0x481006
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x40]
cmp edi, eax
jb 0x481006
cmp byte [esp + 0x2b], 0
mov eax, ebx
jne 0x480ffc
mov eax, ebp
push 0xffff
push edi
push esi
push eax
jmp 0x481013
push edi
push esi
push ebx
call dword [0x4b10d4]
push eax
push edi
push esi
push ebp
call dword [0x4b10b4]
inc esi
cmp esi, dword [esp + 0x30]
jb 0x480fd6
sub edi, 1
jns 0x480fc0
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
mov edi, dword [0x4b10f8]
push ecx
push ebx
call edi
mov edx, dword [esp + 0x50]
push edx
push ebp
call edi
mov edi, dword [0x4b10d8]
push ebx
call edi
push ebp
call edi
lea eax, [esp + 0x14]
push eax
call dword [0x4b146c]
mov ecx, dword [0x4f7b1c]
push ecx
mov edi, eax
call dword [0x4b1668]
mov edx, dword [esp + 0x20]
mov dword [0x4f7b1c], edi
mov edi, dword [0x4b110c]
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x44]
push ecx
call edi
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x27c]
push 0x1e8
lea edx, [esp + 0x78]
push 0
push edx
call fcn.0049f060
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x74], 0x58
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0x7b
mov dword [esp + 0x80], 5
cmp esi, ebx
je 0x4810db
mov dword [esp + 0x80], 7
mov ecx, dword [0x4f7b1c]
push edi
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x8c], 0x47b
mov dword [esp + 0x90], ecx
call fcn.00480960
lea eax, [esp + 0x74]
push eax
push 1
call dword [0x4b13f8]
mov dword [0x4f6b80], edi
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x274]
mov eax, dword [esp + 0x278]
mov dword [0x4f6b90], ecx
mov dword [0x4f6b94], edx
mov dword [0x4f6b88], eax
mov dword [0x4f6b8c], ebp
push edi
lea ecx, [esp + 0x260]
push str.SoftwareWinRARCapabilities
push ecx
call fcn.0049eab5
add esp, 0xc
cmp dword [esp + 0x280], 0
jne 0x4811e9
mov edx, dword [esp + 0x2c]
push 0x9e
push edx
call dword [0x4b1644]
mov esi, eax
push 0x99
jmp 0x48125a
cmp dword [esp + 0x280], 0
jne 0x481111
cmp dword [0x4f7b18], 0
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x274]
mov dword [0x4f6ba0], eax
mov dword [0x4f6ba4], ecx
mov dword [0x4f6b98], esi
mov dword [0x4f6b9c], ebp
je 0x48113d
cmp byte [0x4f6b4a], 0
je 0x48113d
or eax, ecx
jne 0x48113d
test ebp, ebp
jl 0x4816fc
jg 0x48113d
cmp esi, 0x10000
jb 0x4816fc
jmp 0x48113d
mov eax, dword [esp + 0x2c]
push 0x9d
push eax
call dword [0x4b1644]
push 0x98
xor ebx, ebx
lea edi, [esp + 0x260]
mov esi, eax
call fcn.004806d0
mov ecx, dword [0x4f7b18]
test ecx, ecx
jne 0x48126e
cmp dword [esp + 0x280], 1
jne 0x48126e
mov ecx, dword [esp + 0x274]
mov edx, dword [esp + 0x270]
mov eax, dword [0x4f6bac]
push ecx
mov ecx, dword [0x4f6ba8]
push edx
push eax
push ecx
call fcn.004656e0
push eax
mov edx, edi
push str.SoftwareWinRARCapabilities
push edx
call fcn.0049eab5
add esp, 0xc
push 0xa4
xor ebx, ebx
lea edi, [esp + 0x260]
call fcn.004806d0
mov ecx, dword [0x4f7b18]
mov edi, dword [esp + 0x27c]
mov ebx, dword [esp + 0x274]
cmp ebx, edi
jl 0x4812a9
jg 0x481292
mov eax, dword [esp + 0x270]
cmp eax, dword [esp + 0x278]
jbe 0x4812a9
mov edx, dword [esp + 0x278]
mov ebx, edi
mov dword [esp + 0x270], edx
mov dword [esp + 0x274], ebx
cmp byte [0x4f6b4b], 0
je 0x48131f
cmp byte [0x4f6b4a], 0
jne 0x4812c5
cmp dword [esp + 0x280], 0
je 0x4812d8
cmp byte [0x4f6b49], 0
jne 0x4812f4
cmp dword [esp + 0x280], 1
jne 0x4812f4
test ecx, ecx
je 0x4812eb
cmp ecx, 1
je 0x4812eb
cmp ecx, 2
je 0x4812eb
cmp ecx, 8
jne 0x4812f4
push 9
push esi
call dword [0x4b1620]
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0x270]
push 0
push edi
push eax
push ebx
push ecx
call fcn.004656e0
push eax
push 0x402
push esi
call dword [0x4b159c]
jmp 0x4816db
test esi, esi
jne 0x481337
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jmp 0x481360
lea edx, [esp + 0x14]
push edx
push esi
call dword [0x4b1538]
mov ecx, dword [esp + 0x2c]
push 2
lea eax, [esp + 0x18]
push eax
push ecx
push esi
call dword [0x4b1524]
inc dword [esp + 0x20]
mov ecx, dword [0x4f7b18]
cmp dword [esp + 0x34], 0
jne 0x48137c
mov edx, dword [esp + 0x2c]
push edx
call dword [0x4b160c]
mov ecx, dword [0x4f7b18]
mov esi, eax
jmp 0x481380
mov esi, dword [esp + 0x34]
xor ebp, ebp
test ecx, ecx
jne 0x4813d0
cmp dword [esp + 0x280], 1
jne 0x4813d0
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x278]
mov edx, dword [0x4f6bac]
push eax
mov eax, dword [0x4f6ba8]
push ecx
push edx
push eax
call fcn.004656e0
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
mov ecx, eax
imul ecx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x278]
mov edx, dword [esp + 0x274]
push eax
mov eax, dword [esp + 0x274]
push ecx
push edx
push eax
call fcn.004656e0
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
mov ecx, eax
imul ecx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebp, edi
jle 0x481419
mov ebp, edi
mov eax, dword [0x4f6b70]
mov ebx, dword [0x4b10f8]
push eax
push esi
call ebx
mov ecx, dword [0x4f6b54]
push ecx
push esi
mov dword [esp + 0x40], eax
call ebx
mov edx, dword [esp + 0x20]
dec edx
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
lea ecx, [edi + eax]
push ecx
inc edx
xor ecx, ecx
cmp ebp, 1
setle cl
push edx
dec ecx
and ecx, 2
sub eax, ecx
lea edx, [eax + ebp + 1]
push edx
push esi
call dword [0x4b1098]
test ebp, ebp
jle 0x48149c
mov eax, dword [0x4f6b50]
push eax
push esi
call ebx
mov ecx, dword [0x4f6b64]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
dec edx
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [eax + ebp]
push ecx
inc edx
push edx
inc eax
push eax
push esi
call dword [0x4b1098]
mov eax, dword [0x4f6b6c]
push eax
push esi
call ebx
test edi, edi
jle 0x4814ae
lea eax, [edi - 1]
jmp 0x4814b0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ecx
add eax, edx
push eax
push esi
call dword [0x4b1094]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, dword [0x4b109c]
push eax
add ecx, ebp
push ecx
push esi
call ebx
test ebp, ebp
jle 0x4814f9
mov edx, dword [0x4f6b68]
push edx
push esi
call dword [0x4b10f8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
dec edx
push edx
push eax
push esi
call ebx
mov ecx, dword [0x4f6b78]
push ecx
push esi
call dword [0x4b10f8]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
dec edx
push edx
push eax
push esi
call ebx
mov ecx, dword [0x4f6b5c]
push ecx
push esi
call dword [0x4b10f8]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc edx
push edx
push eax
push esi
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0
push ecx
inc edx
push edx
push esi
call dword [0x4b1094]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
inc ecx
push ecx
push esi
call ebx
mov edx, dword [0x4f6b74]
push edx
push esi
call dword [0x4b10f8]
mov eax, dword [0x4f6b58]
push eax
push esi
call dword [0x4b10f8]
mov ecx, dword [esp + 0x27c]
cmp dword [esp + 0x274], ecx
jg 0x4815c2
jl 0x48159e
mov edx, dword [esp + 0x278]
cmp dword [esp + 0x270], edx
jae 0x4815c2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x18]
dec ecx
push ecx
inc edx
push edx
lea ecx, [edi + eax + 1]
push ecx
push esi
call dword [0x4b1098]
test edi, edi
jle 0x481639
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x14]
dec edx
cmp edi, edx
jge 0x481639
mov eax, dword [0x4f6b78]
push eax
push esi
call dword [0x4b10f8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ecx
lea eax, [edi + edx]
push eax
push esi
call dword [0x4b1094]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push ecx
lea eax, [edi + edx]
push eax
push esi
call ebx
mov ecx, dword [0x4f6b5c]
push ecx
push esi
call dword [0x4b10f8]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 0
push edx
lea ecx, [edi + eax]
push ecx
push esi
call dword [0x4b1094]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push edx
add eax, ebp
push eax
push esi
call ebx
mov ecx, dword [esp + 0x27c]
cmp dword [esp + 0x274], ecx
jg 0x4816b2
jl 0x48165b
mov edx, dword [esp + 0x278]
cmp dword [esp + 0x270], edx
jae 0x4816b2
mov eax, dword [0x4f6b60]
push eax
push esi
call dword [0x4b10f8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push ecx
lea eax, [edi + edx + 1]
push eax
push esi
call dword [0x4b1094]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
dec edx
push edx
push esi
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, 0xfffffffe
push eax
dec ecx
push ecx
push esi
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add edx, 0xfffffffe
push edx
lea ecx, [edi + eax + 1]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x38]
mov edi, dword [0x4b10f8]
push edx
push esi
call edi
mov eax, dword [esp + 0x3c]
push eax
push esi
call edi
cmp dword [esp + 0x34], 0
jne 0x4816db
mov ecx, dword [esp + 0x2c]
push esi
push ecx
call dword [0x4b1610]
cmp byte [esp + 0x13], 0
je 0x4816fc
cmp dword [esp + 0x280], 0
jne 0x4816f5
mov byte [0x4f6b4a], 1
jmp 0x4816fc
mov byte [0x4f6b49], 1
pop ebp
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049eaa6
add esp, 0x25c
ret 0x20