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

Disassembly:
push 0xffffffffffffffff
push 0x7519e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [esp + 0x60]
test edi, edi
mov dword [esp + 0xc], ecx
je 0x672ce8
cmp dword [edi + 0x78], 0
je 0x672ce8
push edi
call fcn.00689810
add esp, 4
xor edi, edi
mov ecx, dword [0x912e94]
test ecx, ecx
mov eax, dword [esp + 0x5c]
mov ax, word [eax + 0x2a]
mov dword [esp + 0x60], 0
je 0x672d3b
mov ecx, dword [ecx + 0x1a4]
test ecx, ecx
je 0x672d3b
test ax, ax
je 0x672d3b
mov edx, dword [ecx + 0x1a8]
lea esi, [ecx + 0x1a8]
mov ecx, esi
movzx ebx, ax
call dword [edx + 0xc]
cmp ebx, eax
jae 0x672d3b
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x14]
mov ebx, dword [eax]
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x672d51
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
mov esi, dword [esp + 0x5c]
push ebp
push edi
push esi
call fcn.0065f080
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x672d72
mov dword [esp + 0x64], 1
test edi, edi
jne 0x672d9f
test ebp, ebp
jne 0x672dae
push esi
call fcn.00667a50
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x672dae
mov cx, word [ebp + 0x20]
push edi
push ecx
mov ecx, esi
call fcn.0066f3b0
jmp 0x67342f
cmp word [edi + 0x32], 0
mov dword [esp + 0x18], 1
jne 0x672db6
mov dword [esp + 0x18], 0
test edi, edi
je 0x672dc8
cmp dword [edi + 0x2c], 0
mov dword [esp + 0x1c], 1
jne 0x672dd0
mov dword [esp + 0x1c], 0
mov eax, dword [0x912e94]
test eax, eax
je 0x672de2
cmp dword [eax + 0x1a4], 0
jne 0x672df9
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 8
push 0
mov ecx, esi
call fcn.00657e20
mov edx, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
call dword [edx + 0x48]
cmp eax, 1
ja 0x672e88
cmp dword [esp + 0x64], 0
jne 0x672f05
mov eax, dword [0x912e94]
mov cx, word [eax + 0x1ac]
cmp cx, word [ebx + 0x20]
je 0x672e8f
mov ecx, dword [0x914298]
mov edx, dword [ecx + 0xe5a4]
mov esi, dword [eax]
add ecx, 0xe5a4
push 0x2dbe
mov ebp, ebx
push str.BSSKoHGame_realm.cpp
mov dword [esp + 0x1c], ebp
call dword [edx + 8]
mov ecx, dword [0x912e94]
sub eax, 1
push eax
push 0
call dword [esi + 0x40]
cmp dword [ebx + 0x19c], 0
mov byte [ebx + 0x127], al
jne 0x672fee
mov ecx, dword [0x912eec]
push ebx
push edi
call fcn.005b9be0
jmp 0x672fee
cmp dword [esp + 0x64], 0
jne 0x672f05
mov ecx, dword [esp + 0x10]
call fcn.00671560
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x672de2
push ebp
call fcn.0065a9c0
mov al, byte [ebx + 0x127]
add esp, 4
test edi, edi
mov byte [ebp + 0x127], al
jne 0x672edd
mov cx, word [esi + 0x20]
push edi
push ecx
call fcn.00632080
mov edi, eax
add esp, 8
test edi, edi
je 0x672de2
mov word [edi + 0x1c], 0
mov eax, dword [esp + 0x60]
mov cx, word [eax + 0x20]
mov edx, dword [ebp + 0x24]
lea esi, [ebp + 0x24]
push ecx
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [0x912eec]
push ebp
push edi
call fcn.005b9be0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
mov ax, word [ebp + 0x20]
mov cx, word [ebx + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00658990
mov esi, eax
mov edx, dword [esi]
push 0xfffffc18
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
movzx ecx, word [ebp + 0x20]
mov word [esi + 0x18], cx
mov eax, dword [0x912e94]
test eax, eax
je 0x672f46
mov eax, dword [eax + 0x1a4]
mov dx, word [eax + 0x1bc]
push edx
call fcn.00659140
add esp, 4
test eax, eax
je 0x672f8c
mov cx, word [ebp + 0x20]
mov dx, word [eax + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
call fcn.00658990
mov esi, eax
mov eax, dword [esi]
push 0xfffffc18
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x10]
mov ax, word [ebp + 0x20]
mov word [esi + 0x18], ax
mov eax, dword [0x912e94]
test eax, eax
je 0x672f9b
mov eax, dword [eax + 0x1a4]
mov cx, word [eax + 0x1be]
push ecx
call fcn.00659140
add esp, 4
test eax, eax
je 0x672fd6
mov dx, word [ebp + 0x20]
mov ax, word [eax + 0x20]
mov ecx, dword [esp + 0x10]
push edx
push eax
call fcn.00658990
mov esi, eax
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 2
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [0x912e94]
test eax, eax
jne 0x672fe3
xor ecx, ecx
jmp 0x672fe9
mov ecx, dword [eax + 0x1a4]
call fcn.006584c0
xor esi, esi
cmp edi, esi
jne 0x673028
mov ecx, dword [ebp + 0x19c]
push ecx
mov ecx, dword [0x912eec]
call fcn.005b45a0
cmp eax, esi
jne 0x673025
push ebp
mov dword [ebp + 0x19c], esi
mov ecx, dword [0x912eec]
push esi
call fcn.005b9be0
cmp eax, esi
je 0x67342f
mov edi, dword [eax + 0x24]
cmp dword [esp + 0x64], esi
mov word [edi + 0x32], si
mov esi, dword [esp + 0x60]
jne case.default.0x673052
mov eax, dword [esi + 0x10]
push eax
mov ecx, ebp
call fcn.005f3370
mov eax, dword [esi + 0x194]
cmp eax, 3
mov dword [ebp + 0x294], eax
ja case.default.0x673052
jmp dword [eax*4 + 0x673448]
mov dword [ebp + 0x298], 0
jmp case.default.0x673052
mov dword [ebp + 0x298], 2
jmp case.default.0x673052
mov dword [ebp + 0x298], 4
jmp case.default.0x673052
mov dword [ebp + 0x298], 5
cmp ebp, ebx
je 0x6730de
cmp dword [esp + 0x64], 0
jne 0x6730de
mov edx, dword [ebp]
push 7
mov ecx, ebp
call dword [edx + 0xc]
mov eax, dword [esi + 0x64]
mov ecx, dword [0x912e94]
push eax
call fcn.004668b0
test eax, eax
je 0x6730d0
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x6730d0
mov edx, dword [ecx]
call dword [edx + 0x50]
test eax, eax
je 0x6730d0
mov cx, word [ebp + 0x20]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xe4]
jmp 0x6730de
mov dx, word [ebp + 0x20]
push 0
mov ecx, esi
push edx
call fcn.0066f3b0
mov eax, dword [edi + 0x74]
test eax, eax
je 0x673131
mov ecx, dword [0x923cb8]
push eax
call fcn.0062c080
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x673133
mov ax, word [esi + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
call fcn.006588e0
cmp eax, edi
je 0x67311b
mov edx, dword [eax + 0x34c]
lea ecx, [eax + 0x34c]
push esi
call dword [edx + 0x18]
mov ax, word [ebp + 0x20]
lea ecx, [ebp + 0x34c]
mov word [esi + 0x6e], ax
mov edx, dword [ecx]
push esi
call dword [edx + 8]
jmp 0x673133
xor edi, edi
mov esi, dword [esp + 0x60]
push edi
push esi
call fcn.00668b30
add esp, 8
cmp dword [esp + 0x18], edi
mov word [esi + 0x180], di
mov dword [esi + 0x184], edi
mov dword [esi + 0x188], edi
jne 0x67316c
cmp dword [esp + 0x1c], edi
jne 0x67316c
cmp dword [esp + 0x64], edi
je 0x67342f
jmp 0x673172
cmp dword [esp + 0x64], edi
je 0x673185
push edi
push edi
push edi
push edi
push ebp
push edi
push str.k1_restored
call fcn.005b3d00
add esp, 0x1c
mov ecx, esi
mov dword [esp + 0x60], 0
call fcn.00664af0
mov edi, eax
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x34], edi
call dword [eax + 0x2c]
test eax, eax
mov dword [esp + 0x24], eax
je 0x67342f
lea ecx, [esp + 0x3c]
or esi, 0xffffffff
call fcn.004179a0
mov edx, dword [edi]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
mov dword [esp + 0x5c], 0
call dword [edx + 0x34]
mov cx, word [eax]
test cx, cx
je 0x67320b
mov eax, dword [0x912e94]
test eax, eax
je 0x67320b
mov eax, dword [eax + 0x1a4]
test eax, eax
je 0x67320b
movzx edx, cx
cmp edx, dword [eax + 0x60]
jae 0x6731fd
lea ecx, [eax + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov ebx, dword [eax]
jmp 0x673207
cmp cx, 0xffff
jne 0x67320b
mov ebx, dword [eax + 0x6c]
test ebx, ebx
jne 0x67321d
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], esi
call fcn.004179c0
jmp 0x673424
mov cx, word [ebx + 0x2a]
push ecx
call fcn.00659140
add esp, 4
test eax, eax
mov dword [esp + 0x30], eax
jne 0x673244
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], esi
call fcn.004179c0
jmp 0x673424
mov edx, dword [ebx + 0x64]
mov ecx, dword [0x912e94]
push edx
call fcn.004668b0
test eax, eax
je 0x67326d
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x67326d
mov eax, dword [ecx]
call dword [eax + 0x50]
mov esi, eax
test esi, esi
mov dword [esp + 0x2c], esi
jne 0x673283
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], 0xffffffff
call fcn.004179c0
jmp 0x673424
mov ecx, dword [0x912e94]
mov dx, word [ecx + 0x1ac]
cmp dx, word [ebx + 0x2a]
jne 0x6732a9
add dword [esp + 0x60], 1
cmp dword [esp + 0x18], 0
je 0x6732a9
cmp dword [esp + 0x60], 3
ja 0x67326d
mov ecx, dword [esp + 0x20]
push 0
push 0
push 1
call fcn.005f3380
push eax
push str.KINGDOM
lea ecx, [esp + 0x50]
call fcn.00415a70
push 0
push 0
push 1
mov ecx, ebx
call fcn.00657680
push eax
push str.REALM
lea ecx, [esp + 0x50]
call fcn.00415a70
lea edi, [ebx + 0x164]
test edi, edi
jne 0x6732f1
xor ecx, ecx
jmp 0x673355
mov ecx, dword [0x912e94]
mov eax, dword [ecx]
xor ebp, ebp
call dword [eax + 0x10]
mov edx, dword [edi]
mov ecx, edi
mov dword [esp + 0x28], eax
call dword [edx + 0x2c]
test eax, eax
mov dword [esp + 0x10], eax
je 0x67334b
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call dword [eax + 0x34]
mov esi, dword [eax]
test esi, esi
je 0x673344
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x38]
push edx
push eax
mov ecx, esi
mov dword [esi + 0x2c], 0
call fcn.00662610
mov dword [esi + 0x2c], 0
add ebp, eax
cmp dword [esp + 0x10], 0
jne 0x673311
mov esi, dword [esp + 0x2c]
mov ecx, ebp
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x274]
xor edi, edi
add eax, ecx
cmp dword [esp + 0x18], edi
je 0x6733b2
mov ecx, dword [esp + 0x20]
mov dx, word [ecx + 0x20]
cmp dx, word [ebx + 0x2a]
mov ecx, dword [0x97b5c0]
jne 0x6733aa
cmp eax, dword [ecx + 0x20c]
jge 0x6733aa
mov cx, word [ebp + 0x20]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xe4]
push edi
push ebx
call fcn.00668b30
mov word [ebx + 0x180], di
mov dword [ebx + 0x184], edi
jmp 0x67340c
cmp eax, dword [ecx + 0x210]
jmp 0x6733d2
cmp dword [esp + 0x1c], edi
je 0x6733e5
mov ecx, dword [esp + 0x20]
mov dx, word [ecx + 0x20]
cmp dx, word [ebx + 0x2a]
jne 0x67340f
mov ecx, dword [0x97b5c0]
cmp eax, dword [ecx + 0x214]
jge 0x67340f
mov ax, word [ebp + 0x20]
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0xe4]
jmp 0x673405
cmp dword [esp + 0x64], edi
je 0x67340f
push ebx
call fcn.00667a50
add esp, 4
cmp eax, ebp
jne 0x67340f
mov cx, word [ebp + 0x20]
push edi
push ecx
mov ecx, ebx
call fcn.0066f3b0
push edi
push ebx
call fcn.00668b30
add esp, 8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], 0xffffffff
call fcn.004179c0
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x24], 0
jne 0x6731ad
mov ecx, dword [esp + 0x50]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 8