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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x14], 0xffffffff
or dword [esp + 0x2c], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov edx, edi
mov dword [esp + 0x30], ecx
lea eax, [esi - 1]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], edx
test edi, edi
je 0x4810b9
test esi, esi
je 0x4810b9
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x18], ecx
jne 0x480c09
test eax, eax
jg 0x4810b9
test eax, eax
jns 0x480c14
push 0xfffffffffffffff1
jmp 0x4810bb
cmp dword [edi + 0x20], ecx
mov eax, 0x777f50
mov dword [esp + 0x4c], 0x989680
cmovne eax, dword [edi + 0x20]
cmp dword [edi], 0x50435245
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x14], eax
je 0x480c65
lea eax, [esp + 0xb0]
push eax
push ecx
lea edx, [esp + 0xe0]
mov ecx, edi
call fcn.004810e7
mov edx, eax
mov dword [esp + 0x14], eax
pop ecx
pop ecx
test edx, edx
jne 0x480c65
push 0xfffffffffffffffc
jmp 0x4810bb
movzx eax, word [edx + 0x1a]
movzx ecx, word [edx + 0x1c]
mov ebx, dword [edx + 8]
imul ecx, eax
movzx eax, word [edx + 0x18]
xor edx, edx
inc edx
mov dword [esp + 0x10], ebx
push 3
mov dword [esp + 0x8c], esi
add ecx, edi
add eax, ecx
xor ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], eax
mov eax, ebx
shr eax, 5
and eax, edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], eax
mov eax, ebx
shr eax, 0xb
and eax, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
add eax, 0x340
mov dword [esp + 0x64], eax
mov eax, ebx
and eax, 7
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x1c]
cdq
pop edi
idiv edi
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edi
sub eax, edx
mov edi, dword [esp + 0xc]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa4], ecx
movzx ecx, word [edi + 0x12]
mov dword [esp + 0x18], eax
test cx, cx
je 0x480d59
cdq
idiv dword [esp + 0x1c]
cmp ecx, eax
jl 0x480d59
lea eax, [ecx + 1]
imul eax, eax, 3
mov dword [esp + 0x18], eax
shl eax, 2
push eax
call fcn.00568984
pop ecx
mov ecx, eax
mov dword [esp + 0x50], ecx
test ecx, ecx
jne 0x480d4c
push 0xfffffffffffffffa
jmp 0x4810bb
mov ebx, dword [edi + 8]
mov dword [esp + 0x2c], 1
jmp 0x480d60
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x18]
mov edi, ebx
mov dword [esp + 0x54], eax
add eax, eax
cdq
push 3
pop esi
idiv esi
and dword [esp + 0x64], 0
or dword [esp + 0x9c], 0xffffffff
mov edx, dword [esp + 0x18]
mov esi, edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
movzx eax, word [eax + 0x10]
lea eax, [eax*2 + 2]
cmp eax, dword [ebp + 0x1c]
cmovle esi, eax
mov dword [esp + 0x18], esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x480deb
lea eax, [ecx + edx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ecx, eax
xor eax, eax
sar ecx, 1
inc eax
sub eax, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
sub ecx, 4
cmp ecx, eax
jb 0x480de7
or dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, eax
jae 0x480dce
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x50]
mov ebx, dword [eax + 8]
mov edi, ebx
jmp 0x480def
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test dl, 0x10
jne 0x480e32
test ebx, 0x40000000
je 0x480e27
movzx edx, word [eax + 0x14]
movzx edi, dl
shr edx, 8
and edx, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edx
je 0x480e23
mov edx, dword [esp + 0x14]
movzx edi, byte [edx + edi]
mov dword [esp + 0x28], edi
mov edi, ebx
jmp 0x480e32
test edx, 0x10000000
mov edi, ebx
cmove edi, ebx
mov ebx, dword [esp + 0x14]
test edi, 0x20000000
je 0x480e5f
movzx eax, word [eax + 0x16]
movzx edx, al
shr eax, 8
and eax, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], eax
movzx eax, byte [ebx + edx + 0x100]
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x480eac
mov edx, dword [esp + 0x18]
and dword [esp + 0x1c], 0
and dword [esp + 0x1c], 0
shl edx, 2
lea eax, [edx + ecx]
shr edx, 2
cmp ecx, eax
cmova edx, dword [esp + 0x1c]
test edx, edx
je 0x480ea8
mov ecx, edx
or eax, 0xffffffff
mov edx, dword [esp + 0x50]
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
jmp 0x480eb0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
test eax, 0x40000
je 0x480ecd
mov eax, esi
cmp esi, edi
jae 0x480ec7
cmp byte [eax], 0xa
je 0x480ec7
inc eax
cmp eax, edi
jb 0x480ebd
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
test ecx, ecx
js 0x480f00
cmp esi, edi
jae 0x480f1d
cmp dword [esp + 0x30], 0
je 0x480ef2
movzx eax, byte [esi]
movzx eax, byte [eax + ebx]
cmp eax, ecx
je 0x480f1d
inc esi
cmp esi, edi
jb 0x480ee0
jmp 0x480f1d
movzx eax, byte [esi]
cmp eax, ecx
je 0x480f1d
inc esi
cmp esi, edi
jb 0x480ef2
jmp 0x480f1d
test eax, 0x10000000
je 0x480f1d
cmp esi, dword [esp + 0x88]
jbe 0x480f1d
jmp 0x480f19
cmp byte [esi - 1], 0xa
je 0x480f1d
inc esi
cmp esi, edi
jb 0x480f12
cmp dword [esp + 0x20], 0
mov ebx, dword [esp + 0x14]
mov edi, ebx
mov dword [esp + 0x24], edi
jl 0x480f94
mov eax, ebx
sub eax, esi
cmp eax, 0x3e8
jge 0x480f94
cmp dword [esp + 0x7c], 0
jne 0x480f94
not ecx
shr ecx, 0x1f
add ecx, esi
cmp ecx, dword [esp + 0x3c]
jbe 0x480f94
cmp ecx, ebx
jae 0x480ff6
cmp dword [esp + 0x34], 0
je 0x480f74
movzx eax, byte [ecx]
mov edi, ecx
inc ecx
cmp eax, dword [esp + 0x20]
je 0x480f86
cmp eax, dword [esp + 0x38]
je 0x480f86
cmp ecx, ebx
jb 0x480f5c
jmp 0x480f88
movzx eax, byte [ecx]
mov edi, ecx
inc ecx
cmp eax, dword [esp + 0x20]
je 0x480f86
cmp ecx, ebx
jb 0x480f74
jmp 0x480f88
mov ecx, edi
cmp ecx, ebx
jae 0x480ff6
mov edi, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x48]
and dword [esp + 0x48], 0
mov ecx, esi
push 2
push 0
push dword [esp + 0x4c]
mov dword [esp + 0x9c], esi
push eax
push 2
call fcn.0047f2f3
add esp, 0x14
test eax, eax
jne 0x481024
mov eax, dword [esp + 0x10]
test eax, 0x40000
je 0x480fd1
cmp byte [esi], 0xa
je 0x480ff2
inc esi
test al, 0x10
jne 0x480ff2
cmp esi, ebx
ja 0x480ff2
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x50]
jmp 0x480e67
mov edx, dword [esp + 0x50]
cmp dword [esp + 0x2c], 0
je 0x481004
push edx
call fcn.0055bc34
pop ecx
cmp dword [esp + 0x7c], 0
je 0x48101c
cmp dword [esp + 0x80], 0
je 0x48101c
push 0xfffffffffffffff4
jmp 0x4810bb
or eax, 0xffffffff
jmp 0x4810bc
cmp eax, 1
jne 0x4810bc
cmp dword [esp + 0x2c], 0
je 0x481078
mov eax, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x50]
cmp eax, 4
jl 0x48105e
lea eax, [eax*4 - 8]
push eax
lea eax, [ebx + 8]
push eax
mov eax, dword [ebp + 0x18]
add eax, 8
push eax
call fcn.00552b30
mov eax, dword [ebp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x98], eax
mov edi, dword [esp + 0x64]
push 1
pop eax
push ebx
cmovg edi, eax
call fcn.0055bc34
pop ecx
jmp 0x48107c
mov edi, dword [esp + 0x64]
test edi, edi
je 0x481084
xor eax, eax
jmp 0x481090
mov eax, dword [esp + 0x98]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x1c], 2
jge 0x48109a
xor eax, eax
jmp 0x4810bc
mov edx, dword [ebp + 0x18]
sub esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x88]
mov dword [edx], esi
mov dword [edx + 4], ecx
jmp 0x4810bc
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret