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

Disassembly:
push 0xffffffffffffffff
push 0x4afc4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor edx, edx
cmp ebp, edx
mov ebx, ecx
push esi
mov byte [ebx + 0x168], dl
je 0x477eca
mov esi, dword [esp + 0x20]
cmp esi, edx
je 0x477eca
mov eax, dword [ebx + 0x140]
cmp eax, edx
je 0x477eca
cmp byte [eax + 0x6d], 1
je 0x477ea8
cmp ebp, esi
je 0x477ea8
mov dword [ebx + 0x164], edx
mov eax, dword [ebx + 0xc8]
mov ecx, dword [esi + 0x9c]
push edi
mov edi, dword [ebx + 0x3c]
add edi, eax
cmp ecx, edx
jle 0x47751c
cmp ecx, 5
jl 0x477521
mov ecx, 1
cmp eax, 0xffffffff
mov edx, 3
jne 0x47759e
cmp dword [esi + 0x2a4], edx
jg 0x47756d
cmp dword [ebp + 0x2a4], edx
jg 0x47756d
mov eax, dword [esi + 0xa0]
mov edx, dword [ecx*8 + 0x4ca25c]
mov dword [esp + 0x28], eax
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp + 0xa0]
mov edi, eax
mov eax, dword [esp + 0x28]
sub eax, edx
imul edi, eax
jmp 0x477581
mov edi, dword [esi + 0xa0]
sub edi, dword [ebp + 0xa0]
imul edi, dword [ecx*8 + 0x4ca25c]
add edi, dword [ecx*8 + 0x4ca258]
cmp edi, 0x5f
jle 0x477594
mov edi, 0x5f
jmp 0x47759e
cmp edi, 5
jge 0x47759e
mov edi, 5
call fcn.004974d1
cdq
mov ecx, 0x64
idiv ecx
cmp edx, edi
jg 0x477e6f
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0xd0]
mov edi, dword [ebx + 0x48]
add eax, ecx
mov ecx, dword [ebx + 0xd4]
add ecx, edi
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
call fcn.0047dd70
mov edi, eax
mov eax, dword [esi + 0x230]
add esp, 8
test eax, eax
mov dword [esp + 0x28], edi
jle 0x477603
cmp eax, 1
jne 0x4775f6
mov edi, dword [esp + 0x24]
jmp 0x4775ff
cmp eax, 2
jne 0x477603
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], edi
mov edx, dword [ebx + 0x140]
mov ecx, dword [edx + 0x38]
cmp ecx, 0x12
ja case.default.0x47761c
movzx eax, byte [ecx + 0x477f00]
jmp dword [eax*4 + 0x477ee0]
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x1a8]
add edx, eax
mov eax, dword [ebx + 0xe4]
add eax, dword [ebx + 0x58]
dec ecx
imul edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + ecx*4 + 0xbc]
add edi, eax
mov eax, dword [esi + ecx*4 + 0x1e8]
add eax, edx
lea edx, [ecx + 0x44]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + ecx*4 + 0x188]
sub eax, dword [esi + edx*4 + 0x144]
add ecx, 0x11
sub eax, dword [esi + edx*4 + 0x18]
add eax, dword [ebp + ecx*4 + 0x18]
cmp eax, 0xffffffb5
jge 0x47768a
mov eax, 0xffffffb5
jmp 0x477694
cmp eax, 0x4b
jle 0x477694
mov eax, 0x4b
mov edx, dword [ebp + 0x240]
mov ecx, dword [esi + 0x23c]
sub ecx, edx
mov edx, dword [esp + 0x28]
sub ecx, eax
lea eax, [ecx + edx + 0x64]
imul eax, edi
mov ecx, eax
jmp 0x4777d4
mov ecx, dword [esi + 0x1a4]
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x1a0]
add ecx, eax
push ecx
add edx, dword [esi + 0x74]
push edx
call fcn.0047dd70
mov edx, dword [ebp + 0x164]
mov ecx, dword [ebp + 0x38]
sub eax, edx
sub eax, ecx
add esp, 8
add edi, eax
jmp 0x4777b8
mov ecx, dword [esi + 0x1a4]
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x1a0]
add ecx, eax
push ecx
add edx, dword [esi + 0x74]
push edx
call fcn.0047dd70
mov edx, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x164]
add ecx, edx
mov edx, dword [ebx + 0x140]
sub eax, ecx
mov ecx, dword [edx + 0x38]
mov edx, dword [esi + 0x1a8]
mov dword [esp + 0x2c], eax
add edx, dword [esi + 0x7c]
mov eax, dword [ebx + 0xe4]
add eax, dword [ebx + 0x58]
sub ecx, 8
imul edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esi + ecx*4 + 0xbc]
add edi, eax
mov eax, dword [esi + ecx*4 + 0x1e8]
add eax, edx
lea edx, [ecx + 0x44]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + ecx*4 + 0x188]
sub eax, dword [esi + edx*4 + 0x144]
add ecx, 0x11
sub eax, dword [esi + edx*4 + 0x18]
add eax, dword [ebp + ecx*4 + 0x18]
add esp, 8
cmp eax, 0xffffffb5
jge 0x477787
mov eax, 0xffffffb5
jmp 0x477791
cmp eax, 0x4b
jle 0x477791
mov eax, 0x4b
mov ecx, dword [esp + 0x28]
sub ecx, eax
add ecx, 0x64
mov eax, ecx
imul eax, edi
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, dword [esp + 0x24]
mov edi, ecx
mov eax, dword [esi + 0x23c]
sub eax, dword [ebp + 0x240]
mov dword [esp + 0x28], edi
je case.0x47761c.0
lea ecx, [eax + 0x64]
imul ecx, edi
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
jmp 0x4778de
mov ecx, dword [esi + 0x1a4]
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x1a0]
add ecx, eax
push ecx
add edx, dword [esi + 0x74]
push edx
call fcn.0047dd70
mov edx, dword [ebx + 0x58]
mov ecx, dword [ebx + 0xe4]
add ecx, edx
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
mov eax, dword [ebx + 0xd8]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, 0x64
sub edx, eax
sub edx, dword [ebx + 0x4c]
mov eax, dword [ebp + 0x164]
add eax, dword [ebp + 0x38]
add esp, 8
imul edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov eax, dword [esi + 0x23c]
add edi, ecx
sub eax, dword [ebp + 0x240]
mov dword [esp + 0x28], edi
je case.0x47761c.0
lea ecx, [eax + 0x64]
imul ecx, edi
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
jmp 0x4778de
mov ecx, dword [esi + 0x3c]
mov eax, dword [ebx + 0xd8]
imul eax, ecx
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [esi]
mov eax, edi
neg eax
push eax
mov ecx, esi
mov dword [esp + 0x2c], edi
call dword [edx + 0x70]
jmp case.0x47761c.0
mov ecx, dword [esi + 0x40]
mov eax, dword [ebx + 0xd8]
imul eax, ecx
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [esi + 0x40], 0
mov dword [esp + 0x28], edi
mov byte [ebx + 0x168], 1
mov eax, dword [esi + 0x1c0]
add eax, dword [esi + 0x94]
mov dword [esp + 0x24], eax
call fcn.004974d1
cdq
mov ecx, 0x64
idiv ecx
cmp edx, dword [esp + 0x24]
jge 0x477932
fild dword [esp + 0x28]
call fcn.00497d94
mov ecx, eax
imul ecx, ecx, 0xf
mov eax, 0x66666667
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov byte [ebx + 0x168], 4
mov ax, word [ebx + 0x154]
test ax, ax
jle 0x477948
movsx ecx, ax
mov eax, edi
cdq
idiv ecx
mov edi, eax
mov edx, dword [ebp]
push edi
mov ecx, ebp
call dword [edx + 0x1b4]
mov edi, eax
cmp edi, 0xfff0bdc0
jge 0x47796a
mov dword [ebx + 0x164], 0xfff0bdc0
jmp 0x477984
cmp edi, 0xf4240
jle 0x47797e
mov dword [ebx + 0x164], 0xf4240
jmp 0x477984
mov dword [ebx + 0x164], edi
test edi, edi
jge 0x4779ad
mov al, byte [ebx + 0x168]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x164], 0
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp dword [ebx + 0xc], 3
je 0x477d8a
cmp word [ebx + 0x12], 0x5f83
jne 0x477a28
movsx ecx, word [ebp + 0x2e8]
movsx eax, word [esi + 0x2e8]
sub eax, ecx
cdq
mov ecx, eax
movsx eax, word [esi + 0x2ea]
xor ecx, edx
sub ecx, edx
movsx edx, word [ebp + 0x2ea]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x28], 1
xor edx, edx
cmp ecx, edx
jg 0x4779fd
cmp eax, edx
jle 0x477a09
inc edx
cmp edx, 0xa
jl 0x4779f5
mov eax, dword [esp + 0x28]
jmp 0x477a10
mov eax, 0xa
sub eax, edx
imul eax, edi
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov edx, dword [ebp]
mov eax, edi
neg eax
push eax
mov ecx, ebp
call dword [edx + 0x70]
cmp word [ebx + 0x12], 0xffd
jne 0x477a66
mov edx, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0xd8]
add ecx, edx
imul ecx, edi
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
neg eax
push eax
mov ecx, ebp
call fcn.0040d3c0
mov eax, dword [ebp + 0x1b0]
add eax, dword [ebp + 0x84]
test eax, eax
jle 0x477aac
imul eax, edi
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
mov ecx, dword [esi + 0x3c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jl 0x477a98
lea eax, [ecx - 1]
jmp 0x477aa2
cmp eax, 1
jge 0x477aa2
mov eax, 1
mov edx, dword [esi]
neg eax
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [ebp + 0x234]
add eax, dword [ebp + 0x108]
test eax, eax
jle 0x477adc
imul eax, edi
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
neg eax
push eax
mov ecx, esi
call fcn.0040d3c0
mov ax, word [ebx + 0x12]
cmp ax, 0x3fd
je 0x477b9f
cmp ax, 0x7dc
je 0x477b9f
cmp ax, 0xc13
je 0x477b9f
mov ecx, dword [ebx + 0x94]
mov eax, dword [ebx + 0x120]
mov edx, dword [ebx + 0x98]
add eax, ecx
mov ecx, dword [ebx + 0x124]
add ecx, edx
test eax, eax
mov dword [esp + 0x28], ecx
jle 0x477b4e
imul eax, edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jge 0x477b42
mov eax, 1
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x70]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x477c6c
mov eax, dword [esp + 0x28]
imul eax, edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jge 0x477b7a
mov eax, 1
cmp dword [ebx + 0xd8], 1
jne 0x477b92
neg eax
push eax
mov ecx, ebp
call fcn.0040d3c0
jmp 0x477c6c
push eax
mov ecx, esi
call fcn.0040d3c0
jmp 0x477c6c
call fcn.004974d1
cdq
mov ecx, 5
idiv ecx
mov eax, dword [ebp]
add edx, edi
movsx ecx, dx
neg ecx
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], edx
call dword [eax + 0x70]
test byte [0x524014], 1
jne 0x477bf7
or dword [0x524014], 1
mov ecx, 0x523ff4
mov dword [esp + 0x1c], 0
call fcn.0047d7e0
push 0x4b16a0
call fcn.00497919
add esp, 4
mov dword [esp + 0x1c], 0xffffffff
mov ecx, 0x523ff4
call fcn.0047d5f0
push 0x405
mov ecx, 0x523ff4
call fcn.0047d600
mov edx, dword [esi + 0x2c8]
push edx
mov ecx, 0x523ff4
call fcn.0047d640
mov eax, dword [ebp + 0x2c8]
push eax
mov ecx, 0x523ff4
call fcn.0047d640
push 9
mov ecx, 0x523ff4
call fcn.0047d590
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, 0x523ff4
call fcn.0047d600
mov edx, dword [ebp]
push 0x523ff4
mov ecx, ebp
call dword [edx + 0xb0]
mov eax, dword [esi]
push 0x523ff4
mov ecx, esi
call dword [eax + 0xb0]
mov eax, dword [ebp + 0x3c]
test eax, eax
jle 0x477d93
cmp word [ebx + 0x12], 0x2717
jne 0x477d68
mov eax, dword [ebp + 0x2a4]
sub eax, 3
je 0x477d68
sub eax, 2
je 0x477d68
mov esi, dword [ebx + 0xd8]
call fcn.004974d1
cdq
mov ecx, 0x64
idiv ecx
cmp edx, esi
jge 0x477d68
cmp dword [ebp + 0x20], 0x186a0
jge 0x477d68
mov ecx, dword [ebx + 0xdc]
imul ecx, dword [ebp + 0x3c]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, 0xc350
jle 0x477ceb
mov esi, 0xc350
mov edx, dword [ebp]
mov eax, esi
neg eax
push eax
mov ecx, ebp
call dword [edx + 0x70]
add edi, esi
cmp edi, 0xfff0bdc0
jge 0x477d2e
mov ecx, ebp
mov dword [ebx + 0x164], 0xfff0bdc0
call fcn.0040f4e0
mov al, byte [ebx + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp edi, 0xf4240
jle 0x477d62
mov ecx, ebp
mov dword [ebx + 0x164], 0xf4240
call fcn.0040f4e0
mov al, byte [ebx + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov dword [ebx + 0x164], edi
mov ecx, ebp
call fcn.0040f4e0
mov al, byte [ebx + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp dword [ebp + 0x3c], edi
jg 0x477e6f
pop edi
pop esi
pop ebp
mov byte [ebx + 0x168], 3
mov al, 3
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x154]
add ecx, edx
imul ecx, dword [ebx + 0xd8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [ebp]
mov eax, esi
neg eax
push eax
mov ecx, ebp
call dword [edx + 0x70]
mov ecx, dword [ebp + 0x3c]
mov eax, 1
cmp ecx, eax
jge 0x477df0
mov dword [ebp + 0x3c], eax
cmp esi, 0xfff0bdc0
mov byte [ebx + 0x168], 1
jge 0x477e2c
push ebp
mov ecx, ebx
mov dword [ebx + 0x164], 0xfff0bdc0
call fcn.00477260
mov al, byte [ebx + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp esi, 0xf4240
jle 0x477e61
push ebp
mov ecx, ebx
mov dword [ebx + 0x164], 0xf4240
call fcn.00477260
mov al, byte [ebx + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
push ebp
mov ecx, ebx
mov dword [ebx + 0x164], esi
call fcn.00477260
mov al, byte [ebx + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
pop edi
pop esi
pop ebp
mov byte [ebx + 0x168], 0
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
pop esi
mov al, 8
pop ebp
mov dword [ebx + 0x164], edx
mov byte [ebx + 0x168], al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8