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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [esp + 0x10], esi
je 0x5fa913
call fcn.0062ba20
test eax, eax
je 0x5fa4ca
mov ecx, dword [esp + 0x2c]
mov ax, word [ecx + 0x1c]
cmp ax, word [esi + 0x20]
je 0x5fa43a
push eax
call fcn.00659140
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add esp, 4
push ecx
push edx
mov ecx, eax
call fcn.005fa3e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov ax, word [ecx + 0xac]
push eax
call fcn.00659140
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x5fa4c6
mov ecx, dword [esp + 0x10]
mov dx, word [ecx + 0x20]
mov edi, dword [esp + 0x2c]
cmp dx, word [edi + 0xac]
je 0x5fa48d
push edi
mov ecx, esi
call fcn.005f4600
cmp eax, 0xffffffff
jle 0x5fa48d
test byte [esp + 0x32], 8
jne 0x5fa48d
cmp eax, ebx
jl 0x5fa48d
cmp eax, 9
jge 0x5fa48d
mov dword [esi + eax*4 + 0x1d0], ebx
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov ebp, eax
and ebp, 0xffff0000
and eax, 0xffff
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], eax
je case.0x5fa4bf.5
mov eax, dword [edi + 0x14]
add eax, 0xffffffff
cmp eax, 6
ja case.0x5fa4bf.5
jmp dword [eax*4 + 0x5fa920]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
jmp 0x5fa491
mov eax, dword [0x914298]
mov ecx, dword [eax + 0xda2c]
add dword [esi + 0x3ac], ecx
jmp case.0x5fa4bf.5
mov edx, dword [0x914298]
mov eax, dword [edx + 0xda40]
add dword [esi + 0x3c4], eax
jmp case.0x5fa4bf.5
mov ecx, dword [0x914298]
mov edx, dword [ecx + 0xda34]
add dword [esi + 0x3b8], edx
jmp case.0x5fa4bf.5
mov eax, dword [0x914298]
mov ecx, dword [eax + 0xda30]
add dword [esi + 0x3d0], ecx
jmp case.0x5fa4bf.5
mov edx, dword [0x914298]
mov eax, dword [edx + 0xda3c]
add dword [esi + 0x3e8], eax
jmp case.0x5fa4bf.5
mov ecx, dword [0x914298]
mov edx, dword [ecx + 0xda38]
add dword [esi + 0x3dc], edx
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x5fa561
mov ecx, dword [0x912eec]
push eax
call fcn.005b45a0
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x5fa565
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x224]
add esi, 0x224
push edi
mov ecx, esi
call dword [eax + 0x50]
test eax, eax
je 0x5fa587
mov eax, dword [esp + 0x2c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
mov edx, dword [esp + 0x2c]
and ebp, 0x80000
mov dword [esp + 0x1c], ebp
jne 0x5fa5b4
mov edi, dword [esp + 0x10]
lea esi, [edi + 0x1d0]
xor eax, eax
mov ecx, esi
cmp dword [ecx], edx
je 0x5fa5e4
add eax, 1
add ecx, 4
cmp eax, 9
jb 0x5fa5a5
mov ecx, dword [edx + 0x68]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
cmp eax, ebx
je 0x5fa5ff
lea ecx, [eax - 0x18]
cmp ecx, ebx
je 0x5fa5ff
mov edx, dword [ecx]
call dword [edx + 0x24]
mov esi, eax
cmp esi, ebx
je 0x5fa601
mov ecx, esi
call fcn.0055a440
mov ebp, eax
jmp 0x5fa603
cmp eax, 0xffffffff
jle 0x5fa5b4
cmp eax, ebx
jl 0x5fa5a1
cmp eax, 9
jge 0x5fa5a1
mov dword [edi + eax*4 + 0x1d0], ebx
mov edx, dword [esp + 0x2c]
jmp 0x5fa5a1
xor esi, esi
xor ebp, ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x64]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
cmp eax, ebx
je 0x5fa652
lea ecx, [eax - 0x18]
cmp ecx, ebx
je 0x5fa652
mov edx, dword [ecx]
call dword [edx + 0x50]
mov edi, eax
cmp edi, ebx
je 0x5fa652
push ebx
mov ecx, edi
call fcn.00586870
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0xd4]
push eax
call fcn.00659110
add esp, 8
cmp eax, ebx
je 0x5fa652
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
cmp esi, ebx
je 0x5fa79c
mov eax, dword [esi + 0xbc]
cmp eax, ebx
je 0x5fa70e
mov ecx, dword [0x912e94]
push eax
call fcn.004668b0
cmp eax, ebx
je 0x5fa70e
lea ecx, [eax - 0x18]
cmp ecx, ebx
je 0x5fa70e
mov edx, dword [ecx]
call dword [edx + 0x50]
cmp eax, ebx
je 0x5fa70e
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call dword [edx + 0x148]
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0xd1f
push str.BSSKoHGamekingdom.cpp
push 0x1f4
push 0xfffffe0c
call dword [edx + 0x40]
mov ecx, dword [0x912e94]
add dword [esp + 0x20], eax
mov eax, dword [ecx]
push 0xd20
push str.BSSKoHGamekingdom.cpp
push 0x1f4
push 0xfffffe0c
call dword [eax + 0x40]
add dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
mov ecx, esi
mov dword [eax + 4], edx
call fcn.0055eaa0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x110]
mov ecx, dword [0x912e94]
cmp dword [ecx + 0x1a0], ebx
jne 0x5fa743
mov ecx, esi
call fcn.0055a8e0
mov edx, dword [esi + 0x98]
push edx
call fcn.0063e7d0
mov eax, dword [esi]
add esp, 4
push ebx
mov ecx, esi
mov dword [esi + 0x98], ebx
call dword [eax + 0x1e0]
mov ecx, dword [0x912e94]
mov eax, dword [ecx + 0x18]
cmp eax, ebx
je 0x5fa79c
cmp dword [eax + 0x205f0], ebx
je 0x5fa79c
mov ecx, esi
call fcn.0055ed90
test eax, eax
je 0x5fa79c
cmp dword [esi + 0x1b4], ebx
je 0x5fa79c
mov edx, dword [0x912e94]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x205f0]
push ebx
push 0x85fea0
push 0x85b460
push ebx
push ecx
call fcn.0071f44c
mov edx, dword [esi + 0x1c]
add esp, 0x14
push 4
push edx
mov ecx, eax
call fcn.00504b80
cmp ebp, ebx
mov edi, dword [esp + 0x14]
je 0x5fa7d8
test edi, 0x20000
jne 0x5fa7d8
test edi, 0x10000
mov dword [ebp + 0x3c], ebx
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x68], ebx
je 0x5fa7ce
mov ecx, ebp
call fcn.006912f0
mov ecx, esi
call fcn.00569a70
jmp 0x5fa7d8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x8c]
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
je 0x5fa84d
mov eax, dword [esp + 0x2c]
push ebp
push eax
call fcn.005f4100
mov ecx, dword [esp + 0x34]
push ebp
push ecx
call fcn.005f3dd0
mov ecx, dword [esp + 0x3c]
add esp, 0x10
cmp dword [ecx + 0x78], ebx
je 0x5fa842
call fcn.0062d3a0
mov esi, eax
mov dx, word [esi + 0x1c]
push edx
call fcn.00659140
mov dword [esi + 0x74], ebx
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, ebx
mov dword [ecx + 0x78], ebx
mov dword [0x864438], ebx
je 0x5fa834
push 3
push esi
mov ecx, eax
call fcn.005fa3e0
mov ecx, dword [esp + 0x2c]
mov dword [0x864438], 1
cmp word [ecx + 0x6e], bx
je 0x5fa851
call fcn.0062f630
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
mov dword [ecx + 0x64], ebx
mov ecx, dword [esp + 0x34]
push ebx
call fcn.0062dbf0
mov ecx, dword [esp + 0x2c]
call fcn.00630790
cmp dword [esp + 0x1c], ebx
jne 0x5fa876
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x14], ebx
cmp ebp, ebx
je 0x5fa913
mov eax, dword [0x912e94]
mov eax, dword [eax + 0x1a4]
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x270]
jne 0x5fa89b
mov dword [eax + 0x270], ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
cmp edx, dword [eax + 0x1c8]
jne 0x5fa8c2
test edi, 0x40000
mov dword [eax + 0x1c8], ebx
jne 0x5fa8c2
push eax
call fcn.00645d70
add esp, 4
mov ecx, dword [0x890210]
cmp ecx, ebx
je 0x5fa8d9
mov eax, dword [esp + 0x2c]
push ebp
push eax
push 0x12
call fcn.0040fed0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x5fa8fe
cmp byte [eax + 0xd], bl
jne 0x5fa8fe
mov ecx, dword [eax + 8]
push ebp
push ebx
push ecx
call fcn.005b91f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
mov word [edx + 0x1c], bx
call fcn.00632210
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8