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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x302b4
call 0x4c82e0
push ebx
push esi
push edi
xor eax, eax
push 0x1fffe
push eax
mov word [esp + 0x102c8], ax
lea eax, [esp + 0x102ca]
push eax
call 0x4b8bd0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004635d1
lea ecx, [esp + 0x48]
call fcn.004635d1
lea ecx, [esp + 0x38]
call fcn.004635d1
lea ecx, [esp + 0x28]
call fcn.004635d1
mov edi, dword [ebp + 0x10]
and dword [esp + 0x20], 0
push 0x46df88
call fcn.0047505d
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0x7fff
push ecx
call fcn.004747b1
pop ecx
push eax
lea eax, [esp + 0x2c8]
push eax
call 0x4b8c4a
xor eax, eax
add esp, 0xc
mov word [esp + 0x102be], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
push 0x104
push ecx
call fcn.004747b1
pop ecx
push eax
lea eax, [esp + 0xb8]
push eax
call 0x4b8c4a
xor eax, eax
mov word [esp + 0x2c4], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
add esp, 0xc
call fcn.004747b1
push eax
call fcn.00471473
mov esi, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
pop ecx
mov dword [esp + 0x24], esi
call fcn.004747e5
xor ecx, ecx
push 0x46e064
push esi
mov word [esi + eax*2], cx
call 0x4b9b48
pop ecx
pop ecx
test eax, eax
je 0x480b0b
push eax
lea eax, [esp + 0x2c]
call fcn.00463d4f
push 0x473734
lea edx, [esp + 0x2c]
call fcn.00483cc8
push 0x473738
lea edx, [esp + 0x2c]
mov edi, eax
call fcn.00483cc8
mov ebx, eax
cmp edi, 0xffffffff
je 0x480b8a
cmp ebx, 0xffffffff
je 0x480b8a
cmp ebx, edi
jb 0x480b8a
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
call fcn.00465c0a
push 0x46e064
lea esi, [esp + 0x14]
call fcn.00463627
mov eax, ebx
lea ecx, [esp + 0x28]
sub eax, edi
push ecx
dec eax
lea ebx, [edi + 1]
lea ecx, [esp + 0x4c]
call fcn.0046650c
lea eax, [esp + 0x48]
push eax
mov eax, esi
call fcn.00465c0a
mov edi, 0x46e064
push edi
call fcn.00463627
push edi
push 0
call 0x4b9b48
pop ecx
pop ecx
test eax, eax
jne 0x480a69
mov ebx, dword [ebp + 0xc]
push 0x46e064
lea esi, [esp + 0x14]
call fcn.00463627
xor esi, esi
inc esi
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x480b48
lea eax, [esp + 0x10]
call fcn.00463c2d
cmp word [eax], 0x7c
jne 0x480b41
lea eax, [esp + 0x10]
call fcn.00463c2d
xor ecx, ecx
mov word [eax], cx
inc edi
cmp edi, dword [esp + 0x14]
jb 0x480b24
push dword [esp + 0x24]
call 0x4b6e6c
cmp dword [ebp + 0x14], 6
pop ecx
jb 0x480b67
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x14]
call fcn.004749e6
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x14], 5
jb 0x480bab
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
call fcn.004747b1
push eax
lea eax, [esp + 0x102c4]
push eax
call 0x4b71f7
pop ecx
pop ecx
jmp 0x480bb5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
add esi, ecx
lea eax, [esi + 4]
call fcn.0047a6a2
mov dword [eax + 0x14], 2
lea eax, [esi + 4]
jmp 0x480d65
xor eax, eax
mov word [esp + 0x102c0], ax
push 0x58
pop edi
push edi
lea eax, [esp + 0x5c]
push 0
push eax
call 0x4b8bd0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x2cc]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x102cc]
mov dword [esp + 0x64], edi
mov dword [esp + 0x80], eax
add esp, 0xc
lea eax, [esp + 0xb0]
xor edi, edi
cmp dword [ebp + 0x14], 4
mov dword [esp + 0x78], 0xffff
mov dword [esp + 0x84], eax
jb 0x480cb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00474892
cmp eax, 0x1f
jg 0x480cb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00474892
test eax, eax
js 0x480cb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov edi, 0x80004
call fcn.00474892
test al, 0x10
je 0x480c54
add edi, 2
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00474892
test al, 8
je 0x480c69
or edi, 0x2000
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00474892
test al, 4
je 0x480c7e
or edi, 0x200
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00474892
test al, 2
je 0x480c93
or edi, 0x800
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00474892
test al, 1
je 0x480ca8
or edi, 0x1000
mov dword [esp + 0x8c], edi
jmp 0x480cbc
mov dword [esp + 0x8c], 0x80004
cmp byte [ebp + 0x18], 0
lea eax, [esp + 0x58]
push eax
je 0x480d35
call dword [0x46b0c0]
test eax, eax
je 0x480d4d
push dword [esp + 0x74]
test edi, 0x200
je 0x480d43
call 0x4b6e51
pop ecx
push dword [esp + 0x74]
mov esi, eax
lea eax, [esp + 0x3c]
call fcn.00463d4f
mov eax, dword [esp + 0x74]
lea eax, [eax + esi*2 + 2]
jmp 0x480d25
push eax
call 0x4b6e51
lea esi, [esp + 0x3c]
mov edi, eax
mov dword [esp], 0x46e064
call fcn.00463627
push dword [esp + 0x74]
call fcn.00463627
mov eax, dword [esp + 0x74]
lea eax, [eax + edi*2 + 2]
mov dword [esp + 0x74], eax
cmp word [eax], 0
jne 0x480cfc
push dword [esp + 0x38]
jmp 0x480d43
call dword [0x46b0bc]
test eax, eax
je 0x480d4d
push dword [esp + 0x74]
mov edi, dword [ebp + 0x10]
call fcn.0047505d
jmp 0x480d6e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edi, dword [eax + 4]
add edi, ecx
lea eax, [edi + 4]
call fcn.0047a6a2
mov dword [eax + 0x14], esi
lea eax, [edi + 4]
call fcn.0047a6a2
mov byte [eax + 0x18], 0
lea ecx, [esp + 0x28]
call fcn.00463604
lea ecx, [esp + 0x38]
call fcn.00463604
lea ecx, [esp + 0x48]
call fcn.00463604
lea ecx, [esp + 0x10]
call fcn.00463604
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14