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

Disassembly:
sub esp, 0xe8
push ebx
push ebp
xor ebx, ebx
test byte [0xb32458], 1
push esi
push edi
mov dword [esp + 0x24], ebx
jne 0x605432
or dword [0xb32458], 1
call fcn.00607570
push 0x681420
call fcn.004a9213
add esp, 4
mov ecx, dword [0x954590]
mov esi, dword [0xb203b8]
mov eax, ecx
cmp eax, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
jne 0x60546c
cmp dword [0xb203cc], ebx
jne 0x605464
xor edx, edx
mov eax, esi
mov edi, 0xa
div edi
cmp edx, ecx
je 0x60546c
mov dword [esp + 0x18], 2
mov eax, dword [0xb203c4]
mov ebp, dword [esp + 0xfc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], esi
mov edi, esi
jmp 0x605496
mov ecx, dword [0x954590]
mov esi, dword [esp + 0xfc]
test esi, esi
je 0x6054a7
cmp edi, dword [esp + 0x2c]
ja 0x6054ff
mov edx, dword [esp + 0x18]
shl ecx, 0xa
or ecx, dword [0x9549e8]
push edx
lea eax, [esp + 0x24]
push eax
shl ecx, 0xa
or ecx, dword [0x95458c]
push edi
push 0xb203a8
mov eax, ecx
call fcn.00607960
test eax, eax
je 0x6054ff
test esi, esi
je 0x6054ff
mov esi, dword [esp + 0x20]
push ebx
mov edi, esi
call fcn.00605050
mov ecx, 0x24
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x24], 1
jmp 0x60551d
lea esi, [ebx + 1]
push esi
call fcn.00603e80
add esp, 4
cmp dword [esp + 0xfc], 0
je 0x60551d
push esi
mov esi, ebp
call fcn.00603150
add ebx, 1
add edi, 1
add ebp, 0x91
cmp ebx, 0xa
mov dword [esp + 0x14], edi
jb 0x605490
mov eax, dword [esp + 0x1c]
mov ecx, 1
sub ecx, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ecx
cmp dword [esp + 0xfc], 0
je 0x605569
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
ja 0x605763
mov eax, dword [0x954590]
mov edx, dword [esp + 0x18]
shl eax, 0xa
or eax, dword [0x9549e8]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
shl eax, 0xa
or eax, dword [0x95458c]
push edx
push 0xb203a8
call fcn.00607960
test eax, eax
je 0x605763
cmp dword [esp + 0xfc], 0
je 0x605763
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
neg esi
cmp eax, 9
jae 0x6055d4
mov edx, dword [0xb203c4]
add edx, 0xffffffff
cmp dword [esp + 0x14], edx
jae 0x6055d4
lea edi, [ecx + 1]
jmp 0x6055d6
xor edi, edi
xor ebp, ebp
xor ebx, ebx
test esi, esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], ebx
je 0x60561f
mov eax, dword [0x954590]
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
shl eax, 0xa
or eax, dword [0x9549e8]
lea edx, [esp + 0x34]
push edx
add ecx, 0xffffffff
shl eax, 0xa
or eax, dword [0x95458c]
push ecx
push 0xb203a8
call fcn.00607960
mov ebp, dword [esp + 0x30]
mov esi, eax
test edi, edi
je 0x60565c
mov eax, dword [0x954590]
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
shl eax, 0xa
or eax, dword [0x9549e8]
lea ecx, [esp + 0x20]
push ecx
add edx, 1
shl eax, 0xa
or eax, dword [0x95458c]
push edx
push 0xb203a8
call fcn.00607960
mov ebx, dword [esp + 0x1c]
mov edi, eax
test ebp, ebp
jne 0x605662
xor esi, esi
test ebx, ebx
je 0x605671
mov eax, dword [ebx + 0x7c]
or eax, dword [ebx + 0x80]
jne 0x605673
xor edi, edi
test esi, esi
mov eax, dword [esp + 0x20]
je 0x60569a
mov ecx, dword [eax + 0x80]
cmp ecx, dword [ebp + 0x80]
ja 0x60569a
jb 0x605693
mov edx, dword [eax + 0x7c]
cmp edx, dword [ebp + 0x7c]
jae 0x60569a
mov edx, 1
jmp 0x60569c
xor edx, edx
test edi, edi
je 0x6056bf
mov ecx, dword [eax + 0x80]
cmp ecx, dword [ebx + 0x80]
jb 0x6056bf
ja 0x6056b8
mov eax, dword [eax + 0x7c]
cmp eax, dword [ebx + 0x7c]
jbe 0x6056bf
mov ecx, 1
jmp 0x6056c1
xor ecx, ecx
test esi, esi
je 0x6056e8
test edi, edi
je 0x6056e8
mov eax, dword [ebp + 0x80]
cmp eax, dword [ebx + 0x80]
jb 0x6056e8
ja 0x6056e1
mov eax, dword [ebp + 0x7c]
cmp eax, dword [ebx + 0x7c]
jbe 0x6056e8
mov eax, 1
jmp 0x6056ea
xor eax, eax
test edx, edx
jne 0x6056f2
test ecx, ecx
je 0x605763
test eax, eax
jne 0x605763
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
add ecx, edx
push ecx
push str.ID_TT_HUB_POS__d
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.004a96d3
add esp, 0x10
cmp dword [0x939f0c], 0
je 0x605741
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x605725
sub eax, edx
push eax
lea ecx, [esp + 0x3c]
call fcn.00544b70
add esp, 4
mov esi, eax
jmp 0x605744
or esi, 0xffffffff
lea ecx, [esp + 0x78]
push 0x6d974c
push ecx
call fcn.004a961b
lea edx, [esp + 0x80]
push edx
call fcn.0061adb0
add esp, 0xc
mov eax, dword [esp + 0x28]
add dword [esp + 0x14], 1
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x28], eax
jb 0x605551
cmp dword [esp + 0xfc], 0
je 0x60584c
cmp dword [0x939f0c], 0
je 0x6057bd
mov eax, 0x6d9750
lea edx, [eax + 1]
jmp 0x6057a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x6057a0
sub eax, edx
push eax
mov ecx, 0x6d9750
call fcn.00544b70
add esp, 4
mov esi, eax
jmp 0x6057c0
or esi, 0xffffffff
mov ebp, dword [0xa087a0]
xor edi, edi
test ebp, ebp
jbe 0x6057ea
mov ebx, 0xa08444
mov edx, dword [ebx]
test edx, edx
je 0x6057e0
call fcn.00549900
test eax, eax
jne 0x605810
add edi, 1
add ebx, 0x74
cmp edi, ebp
jb 0x6057d1
mov eax, esi
call fcn.00549960
test eax, eax
jne 0x605810
mov eax, dword [0x942374]
test eax, eax
je 0x60580e
mov edi, edi
mov ecx, dword [eax + 8]
cmp dword [ecx + 4], esi
je 0x60585b
mov eax, dword [eax]
test eax, eax
jne 0x605800
xor eax, eax
mov edx, eax
mov eax, dword [edx + 0x74]
xor ecx, ecx
test eax, eax
je 0x60582e
mov edx, dword [edx + 0x88]
cmp eax, edx
je 0x605830
mov eax, dword [eax]
add ecx, 1
test eax, eax
jne 0x605821
xor ecx, ecx
mov esi, ecx
imul esi, esi, 0x91
add esi, dword [esp + 0xfc]
mov ecx, 0x24
mov edi, 0x9544b8
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret
mov eax, ecx
jmp 0x605810