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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 8]
xor eax, eax
push edi
mov edi, dword [ebx]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
add esi, 0x28
mov eax, 8
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00482110
cmp dword [ebx + 0x58], 7
mov dword [ebx + 0x14], 0
jne 0x4822ca
mov eax, 1
mov byte [edi + 0x36], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x5d], 1
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 8], edi
jne 0x482340
mov eax, dword [ebx + 8]
add eax, 0x168
test byte [eax + 0x1c], 0x10
mov dword [ebp - 0x10], eax
je 0x4822f6
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 4]
shr ecx, 2
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
xor ecx, ecx
xor edx, edx
xor eax, eax
cmp dword [ebp - 4], 2
jl 0x482320
mov edi, dword [ebp - 0xc]
mov edi, dword [edi + eax*4]
add ecx, dword [edi + 4]
mov edi, dword [ebp - 0xc]
mov edi, dword [edi + eax*4 + 4]
add edx, dword [edi + 4]
mov edi, dword [ebp - 4]
add eax, 2
dec edi
cmp eax, edi
jl 0x482302
cmp eax, dword [ebp - 4]
jge 0x482333
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + eax*4]
mov edi, dword [ebp - 8]
add edi, dword [eax + 4]
jmp 0x482336
mov edi, dword [ebp - 8]
add ecx, edx
add edi, ecx
lea ebx, [ebx]
mov eax, dword [ebx + 0x54]
lea ecx, [eax + 1]
mov dword [ebx + 0x54], ecx
cmp eax, edi
jge 0x4823a8
cmp byte [ebx + 0x5d], 2
jne 0x48235f
mov ecx, dword [ebx + 4]
lea edx, [eax + eax*4]
cmp byte [ecx + edx*4], 0x96
jne 0x482340
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0xe0]
test ecx, ecx
je 0x4823c0
mov dword [ebx + 0x58], 9
mov ecx, dword [str.interrupted]
mov dword [ebp + 8], 1
mov eax, str.unknown_error
test ecx, ecx
je 0x48238b
mov eax, ecx
push eax
push 0x51af78
lea edi, [ebx + 0x34]
mov esi, edx
call fcn.00465ef0
mov eax, dword [ebp + 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0x65
mov eax, dword [ebp + 8]
mov dword [ebx + 0x58], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
jge 0x4823d5
mov ecx, dword [ebx + 4]
lea edx, [eax + eax*4]
lea edi, [ecx + edx*4]
mov dword [ebp - 8], edi
jmp 0x482403
mov edi, dword [ebp - 0xc]
sub eax, ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
xor edx, edx
cmp eax, ecx
jl 0x4823f3
sub eax, ecx
mov ecx, dword [edi + edx*4 + 4]
mov ecx, dword [ecx + 4]
inc edx
cmp eax, ecx
jge 0x4823e5
mov edx, dword [edi + edx*4]
mov edx, dword [edx]
lea ecx, [eax + eax*4]
lea ecx, [edx + ecx*4]
mov dword [ebp - 8], ecx
mov edi, ecx
cmp byte [ebx + 0x5d], 1
jne 0x4824c6
mov edx, 4
mov word [esi + 0x1c], dx
cdq
mov dword [esi + 0x10], eax
mov byte [esi + 0x1e], 1
mov dword [esi + 0x14], edx
mov eax, 0xa02
mov word [esi + 0x44], ax
movzx ecx, byte [edi]
mov eax, dword [ecx*4 + 0x505eb0]
mov dword [esi + 0x2c], eax
mov ecx, eax
test eax, eax
je 0x482450
cmp byte [eax], 0
je 0x482448
inc ecx
cmp byte [ecx], 0
jne 0x482442
sub ecx, eax
and ecx, 0x3fffffff
mov dword [esi + 0x40], ecx
mov word [esi + 0x46], 0x103
add esi, 0x50
cmp byte [edi + 1], 0xee
jne 0x4824c6
mov ecx, dword [ebp - 4]
lea edx, [ecx*4 + 4]
xor eax, eax
mov dword [ebp - 0x14], edx
test ecx, ecx
jle 0x482489
mov ecx, dword [edi + 0x10]
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*4], ecx
je 0x482486
inc eax
cmp eax, dword [ebp - 4]
jl 0x482478
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x4824c6
mov edi, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
setne al
push eax
mov eax, dword [ebp - 0x14]
call fcn.0047ffe0
add esp, 4
test eax, eax
jne 0x4824c3
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov eax, edi
mov ecx, dword [eax + 4]
mov edi, dword [ebp - 4]
mov dword [ecx + edi*4], edx
mov ecx, dword [ebp - 0x14]
or word [eax + 0x1c], 0x10
mov dword [eax + 0x18], ecx
mov edi, dword [ebp - 8]
mov edx, 4
mov word [esi + 0x1c], dx
mov eax, dword [edi + 4]
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov byte [esi + 0x1e], 1
mov eax, 4
mov word [esi + 0x44], ax
mov eax, dword [edi + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov byte [esi + 0x46], 1
mov ecx, 4
mov word [esi + 0x6c], cx
mov eax, dword [edi + 0xc]
cdq
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov byte [esi + 0x6e], 1
add esi, 0x78
push 0
lea eax, [ecx + 0x1c]
mov edi, esi
call fcn.0047ffe0
add esp, 4
test eax, eax
je 0x48252d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 4]
mov eax, dword [ebp - 8]
mov edx, 0x602
mov word [esi + 0x1c], dx
call fcn.00481d10
mov ecx, dword [esi + 4]
mov edi, eax
cmp edi, ecx
je 0x482603
test edi, edi
jne 0x48259a
test byte [esi + 0x1c], 0x40
je 0x48256c
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xac]
mov dword [eax + 4], edx
mov dword [ecx + 0xac], eax
test byte [esi + 0x1c], 0x20
je 0x48257d
mov ebx, dword [esi + 0x10]
call fcn.0046d870
mov ebx, dword [ebp + 8]
mov ax, word [esi + 0x1c]
mov ecx, 0xbf01
and ax, cx
or ax, 1
mov word [esi + 0x1c], ax
mov byte [esi + 0x1e], 5
jmp 0x482624
mov eax, dword [esi]
test eax, eax
je 0x4825a5
mov eax, dword [eax + 0x4c]
jmp 0x4825aa
mov eax, 0x3b9aca00
xor ebx, ebx
test eax, eax
js 0x4825bb
cmp byte [ebx + edi], 0
je 0x4825bb
inc ebx
cmp ebx, eax
jle 0x4825b0
xor edx, edx
mov dword [ebp - 0x14], 0x202
push esi
cmp edx, 0x465a70
jne 0x4825da
call fcn.00480390
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], edi
jmp 0x4825e4
call fcn.00480390
mov eax, 0xa02
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp + 8]
mov dword [esi + 0x20], 0
mov dword [esi + 4], edi
add esp, 4
mov word [esi + 0x1c], ax
mov word [esi + 0x1e], 0x103
jmp 0x482624
mov eax, ecx
test ecx, ecx
je 0x48261d
cmp byte [ecx], 0
je 0x482616
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x482610
sub eax, ecx
and eax, 0x3fffffff
mov dword [esi + 0x18], eax
mov byte [esi + 0x1f], 1
mov byte [esi + 0x1e], 3
cmp byte [ebx + 0x5d], 1
jne 0x482686
push 0
mov eax, 4
lea edi, [esi + 0x28]
call fcn.0047ffe0
add esp, 4
test eax, eax
jne 0x482521
mov ecx, dword [ebp - 8]
mov eax, 0x602
mov word [esi + 0x44], ax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x40], 2
movzx edx, byte [ecx + 3]
push edx
push str._.2x
push eax
push 3
call fcn.00467200
mov word [esi + 0x46], 0x103
mov ecx, 1
add esp, 0x10
mov word [esi + 0x6c], cx
mov byte [esi + 0x6e], 5
movzx edx, byte [ebx + 0x5d]
mov ecx, dword [ebx + 8]
dec dx
mov eax, 2
sub ax, dx
add ax, ax
add ax, ax
pop edi
add ecx, 0x28
mov word [ebx + 0x2c], ax
mov dword [ebp + 8], 0x64
mov eax, dword [ebp + 8]
pop esi
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x58], 0
pop ebx
mov esp, ebp
pop ebp
ret