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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x721984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x1c]
push edi
xor ebx, ebx
lea edi, [eax + ecx]
cmp edi, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edi
jle 0x5a1d44
mov esi, dword [ebp + 0x14]
add esi, 8
mov dword [esp + 0x24], edi
lea ecx, [ecx]
lea ecx, [esp + 0x30]
call fcn.005b3190
mov edx, dword [0x7a39fc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 8]
push eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0xe8], 0
call fcn.004ae810
push eax
mov ecx, esi
call fcn.005ea130
push 0x73d71c
lea ecx, [esp + 0x34]
call fcn.005e5290
test eax, eax
je 0x5a1ca3
mov dword [esp + 0x20], 1
jmp 0x5a1ca8
mov ebx, 1
lea ecx, [esp + 0x30]
mov dword [esp + 0xdc], 0xffffffff
call fcn.005e5c20
mov eax, dword [esp + 0x24]
add esi, 0xb4
dec eax
mov dword [esp + 0x24], eax
jne 0x5a1c50
test ebx, ebx
je 0x5a1d44
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5a1d44
push str.CONVERSATION_ERROR:_Last_Conversation_Node_Contains_Either_an_END_NODE_or_CONTINUE_NODE.__Please_contact_a_Designer_
lea ecx, [esp + 0x34]
call fcn.005e5a90
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
mov esi, 1
mov dword [esp + 0xdc], esi
call fcn.005ed690
lea edx, [esp + 0x30]
push edx
lea ecx, [eax + 0xb18]
mov dword [eax + 0xb14], esi
call fcn.005e5c50
lea ecx, [esp + 0x30]
mov dword [esp + 0xdc], 0xffffffff
call fcn.005e5c20
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x94]
push edx
mov edx, dword [eax + 0x80]
push edx
call fcn.004aed70
mov ecx, eax
call fcn.004d8230
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [edi*8 + 4]
push ecx
mov dword [esp + 0x70], eax
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0xdc], 2
je 0x5a1dbc
push fcn.005e5c20
push fcn.005b3190
push edi
lea esi, [eax + 4]
push 8
push esi
mov dword [eax], edi
call fcn.006fb55f
mov dword [esp + 0x48], esi
jmp 0x5a1dc4
mov dword [esp + 0x48], 0
lea esi, [edi*4]
push esi
mov dword [esp + 0xe0], 0xffffffff
call fcn.006fa7e6
push esi
mov dword [esp + 0x40], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0x38], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0x74], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0xa4], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0x94], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0x78], eax
call fcn.006fa7e6
lea edx, [edi + edi]
push edx
mov dword [esp + 0xac], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0x98], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0xac], eax
call fcn.006fa7e6
push edi
mov dword [esp + 0x8c], eax
call fcn.006fa7e6
mov dword [esp + 0x94], eax
lea eax, [edi + edi*2]
shl eax, 2
push eax
call fcn.006fa7e6
xor ebx, ebx
add esp, 0x30
cmp eax, ebx
je 0x5a1e94
lea edx, [edi - 1]
cmp edx, ebx
jl 0x5a1e8e
lea ecx, [eax + 8]
inc edx
lea esp, [esp]
mov dword [ecx - 8], ebx
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x5a1e80
mov dword [esp + 0x50], eax
jmp 0x5a1e98
mov dword [esp + 0x50], ebx
push esi
call fcn.006fa7e6
push esi
mov dword [esp + 0x28], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0x30], eax
call fcn.006fa7e6
push esi
mov dword [esp + 0x50], eax
call fcn.006fa7e6
push esi
mov ebx, eax
call fcn.006fa7e6
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x9c]
mov edx, dword [eax + ecx*4 + 0xa8]
mov esi, dword [eax + 0xa4]
mov dword [esp + 0xc4], edx
xor edx, edx
add esp, 0x14
cmp esi, edx
je 0x5a1eff
mov esi, dword [eax + 0xa0]
add esi, ecx
mov dword [eax + 0x9c], esi
jmp 0x5a1f0b
sub ecx, dword [eax + 0xa0]
mov dword [eax + 0x9c], ecx
cmp dword [eax + 0x9c], 0x13
jl 0x5a1f1a
mov dword [eax + 0x9c], edx
cmp dword [eax + 0x9c], edx
jge 0x5a1f2c
mov dword [eax + 0x9c], 0x12
cmp edi, edx
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x78], edx
jle 0x5a2446
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0xb4], eax
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
sub eax, ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
sub eax, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
sub eax, ebx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x90]
sub eax, ebx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x7c]
sub eax, ebx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x5c]
mov esi, dword [ebp + 0x14]
sub eax, ebx
mov edx, dword [esp + 0x50]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x8c]
sub eax, ebx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x84]
sub eax, ebx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x60]
sub eax, ebx
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x20]
sub eax, ebx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x24]
add esi, 0x84
sub eax, ebx
mov dword [esp + 0x88], edx
mov edi, ebx
mov dword [esp + 0x30], eax
lea ecx, [ecx]
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esi - 0x7c]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.0059f320
mov ecx, dword [esp + 0x80]
push eax
mov dword [esp + 0xe0], 3
call fcn.005e5c50
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x2c]
lea eax, [ecx + edi]
mov ecx, dword [esp + 0xb4]
mov dword [eax + ecx], edx
mov eax, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x70], 0x7f000000
je 0x5a20ff
push 0x73d71c
mov ecx, esi
call fcn.005e5390
test eax, eax
je 0x5a20ff
push 0x74a608
mov ecx, esi
call fcn.005e58c0
test eax, eax
je 0x5a20ac
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x80]
jmp 0x5a20f1
push str.PLAYER
mov ecx, esi
call fcn.005e58c0
test eax, eax
je 0x5a20db
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
call fcn.004aea40
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 8]
push eax
call fcn.004ae910
jmp 0x5a20ff
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0xc]
push esi
push eax
call fcn.0059fc30
test eax, eax
je 0x5a20ff
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x54]
push eax
call fcn.005eda50
mov dword [esp + 0x70], eax
mov eax, dword [esi - 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
add ecx, edi
test eax, eax
mov dword [ecx], eax
mov dword [edi], 0
mov dword [esp + 0x44], eax
mov dword [edx + edi], 0
je 0x5a214d
lea ecx, [eax*4]
push ecx
call fcn.006fa7e6
mov edx, dword [esp + 0x48]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.006fa7e6
mov ecx, dword [esp + 0x54]
mov dword [ecx + edi], eax
mov eax, dword [esp + 0x4c]
add esp, 8
test eax, eax
mov dword [esp + 0x10], 0
jle 0x5a232d
mov dword [esp + 0x18], 0
jmp 0x5a2170
mov ecx, dword [esi - 0x20]
mov edx, dword [esp + 0x18]
push str.PLAYER
add ecx, edx
call fcn.005e5290
test eax, eax
je 0x5a21a8
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x64]
cmp dword [edx], 0
je 0x5a219b
mov eax, dword [eax + 0x7c]
jmp 0x5a2252
mov dword [esp + 0x14], 0x7f000000
jmp 0x5a2256
mov ecx, dword [esi - 0x20]
mov edx, dword [esp + 0x18]
push 0x74a608
add ecx, edx
call fcn.005e5290
test eax, eax
je 0x5a21d2
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x80]
mov dword [esp + 0x14], edx
jmp 0x5a2256
mov ecx, dword [esi - 0x20]
mov edx, dword [esp + 0x18]
push str.NPC1
add ecx, edx
call fcn.005e5290
test eax, eax
je 0x5a21f5
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
push 1
jmp 0x5a2217
mov ecx, dword [esi - 0x20]
mov edx, dword [esp + 0x18]
push str.NPC2
add ecx, edx
call fcn.005e5290
test eax, eax
je 0x5a223f
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
push 2
call fcn.005ed8b0
mov ecx, eax
call fcn.006346c0
test eax, eax
je 0x5a219b
mov eax, dword [eax + 4]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
call fcn.004aea30
jmp 0x5a2252
mov edx, dword [esi - 0x20]
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
push 0
push edx
call fcn.004cb5c0
mov dword [esp + 0x14], eax
mov eax, dword [0x7a39fc]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push edx
call fcn.004ae750
test eax, eax
je 0x5a22a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
push eax
call fcn.005eda50
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + edi]
mov eax, dword [esi - 0x20]
mov ecx, dword [esp + 0x18]
mov ax, word [ecx + eax + 8]
mov ecx, dword [esp + 0x10]
mov word [edx + ecx*2], ax
jmp 0x5a230d
lea ecx, [esp + 0xc0]
call fcn.005b3190
mov eax, dword [esp + 0x18]
mov edx, dword [esi - 0x20]
mov ecx, dword [eax + edx + 4]
mov edx, dword [eax + edx]
push ecx
push edx
lea eax, [esp + 0xc8]
push str.Error:_dialogue_cant_find_object__s_
push eax
mov dword [esp + 0xec], 4
call fcn.005e5680
mov ecx, dword [edi]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
mov dword [ecx + eax*4], 0x7f000000
mov ecx, dword [edx + edi]
mov word [ecx + eax*2], 0
add esp, 0x10
lea ecx, [esp + 0xc0]
mov dword [esp + 0xdc], 0xffffffff
call fcn.005e5c20
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
jl 0x5a2170
mov eax, dword [esi + 8]
test eax, eax
jne 0x5a2355
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xf8]
test eax, eax
je 0x5a234b
mov dword [esi + 8], 2
jmp 0x5a2355
mov eax, dword [esp + 0xb0]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x3c]
mov dword [edi + edx], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xa0]
mov dword [edi + ecx], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0xbc]
mov dword [edi + eax], edx
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0xa8]
mov dword [edi + edx], ecx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0xb8]
mov dword [edi + ecx], eax
mov edx, dword [esi - 0x64]
mov eax, dword [esp + 0x98]
mov dword [edi + eax], edx
mov cx, word [esi + 0x18]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov word [edx + eax*2], cx
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x9c]
mov dword [edi + edx], ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0xa4]
mov dword [edi + edx], ecx
mov cl, byte [esi - 0x1c]
mov edx, dword [esp + 0x68]
mov byte [edx + eax], cl
mov ecx, dword [esp + 0x88]
lea eax, [esi - 0x18]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov edx, dword [esp + 0xac]
mov dword [ecx + 8], eax
mov ecx, dword [esi - 8]
mov dword [edi + edx], ecx
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x88]
mov dword [edi + ecx], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
add ecx, 8
inc eax
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x28]
add edx, 0xc
add esi, 0xb4
add edi, 4
cmp eax, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], edx
jl 0x5a2010
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x40]
test ecx, ecx
mov dword [eax + 0xf8], 0
je 0x5a24cb
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x5a24cb
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
sub eax, ebx
mov dword [esp + 0x3c], eax
mov eax, ebx
sub eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
add eax, edi
mov edx, dword [eax + ecx]
mov ecx, dword [esp + 0xc]
push edx
call fcn.005a0ba0
mov eax, dword [edi]
xor esi, esi
test eax, eax
jle 0x5a24bd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edi]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0xc]
add eax, edi
push edx
call fcn.005a0ba0
mov eax, dword [edi]
inc esi
cmp esi, eax
jl 0x5a24a0
mov eax, dword [esp + 0x1c]
add edi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x5a2481
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x5a254c
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x5a254c
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
sub eax, ebx
mov dword [esp + 0x3c], eax
mov eax, ebx
sub eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
jmp 0x5a2500
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
lea eax, [edi + ecx]
mov eax, dword [eax + edx]
mov ecx, dword [esp + 0xc]
push eax
call fcn.005a0d10
mov eax, dword [edi]
xor esi, esi
test eax, eax
jle 0x5a253e
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + ecx]
lea eax, [edi + ecx]
mov eax, dword [edx + esi*4]
mov ecx, dword [esp + 0xc]
push eax
call fcn.005a0d10
mov eax, dword [edi]
inc esi
cmp esi, eax
jl 0x5a2520
mov eax, dword [esp + 0x1c]
add edi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x5a2500
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x58]
push ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push ebx
push eax
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x88]
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push edx
push eax
push ecx
mov ecx, esi
call fcn.005eda50
mov edx, dword [ebp + 8]
push eax
push edx
mov ecx, esi
call fcn.005ed690
mov ecx, eax
call fcn.00634340
test edi, edi
je 0x5a2606
push edi
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5a2617
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5a263c
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.005e5c20
push ecx
push 8
push eax
call fcn.006fa852
push esi
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5a264d
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x90]
test eax, eax
je 0x5a2661
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x5a2672
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x5a2683
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5a2697
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5a26a8
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5a26bc
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5a26cd
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x5a26de
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x5a26ef
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5a2700
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5a2711
push eax
call fcn.006fa390
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x5a2761
mov esi, dword [esp + 0x58]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
lea esp, [esp]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + esi]
test eax, eax
mov edi, dword [esi]
je 0x5a2746
push eax
call fcn.006fa390
add esp, 4
test edi, edi
je 0x5a2753
push edi
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x38]
add esi, 4
dec eax
mov dword [esp + 0x38], eax
jne 0x5a2730
test ebx, ebx
je 0x5a276e
push ebx
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5a277f
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5a2790
push eax
call fcn.006fa390
add esp, 4
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x20