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

Disassembly:
sub esp, 0x30
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x586183
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push ebx
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push ebp
push ecx
push eax
lea eax, [esi + 0x4c]
push eax
call ebx
test eax, eax
je 0x585fb9
mov eax, 0x1b3
mov ecx, 0x1c7
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov eax, dword [0xcea298]
mov dword [esp + 0xc], 0x1e3
test eax, eax
mov dword [esp + 0x10], 0x1b5
mov dword [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x1c9
mov dword [esp + 0x1c], 0x1a3
mov dword [esp + 0x24], 0x1c8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0x21f
mov dword [esp + 0x34], 0x244
mov dword [esp + 0x38], ecx
je 0x585fb2
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call ebx
test eax, eax
jne 0x585fb2
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call ebx
test eax, eax
jne 0x585fb2
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call ebx
test eax, eax
je 0x585fb9
mov dword [esi + 0x64], 1
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov edx, dword [esi + 0x6c]
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x585fda
mov ecx, dword [esi + 0x6c]
mov dword [ecx + 0x10], 1
mov eax, dword [esi + 0x78]
xor ebp, ebp
test eax, eax
jle 0x586167
push edi
jmp 0x585ff0
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [0xcf95d4]
mov eax, dword [esi + 0x68]
mov ecx, dword [0xcf95d0]
lea edi, [ebp*8]
sub edi, ebp
push edx
shl edi, 2
add eax, edi
push ecx
push eax
call ebx
test eax, eax
je case.0x5860e2.9
mov ebx, dword [esi + 0x68]
mov eax, 0x1b3
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov eax, dword [0xcea298]
add ebx, edi
mov ecx, 0x1c7
mov dword [esp + 0x30], 0x1e3
test eax, eax
mov dword [esp + 0x34], 0x1b5
mov dword [esp + 0x38], 0x208
mov dword [esp + 0x3c], 0x1c9
mov dword [esp + 0x20], 0x1a3
mov dword [esp + 0x28], 0x1c8
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], 0x21f
mov dword [esp + 0x18], 0x244
mov dword [esp + 0x1c], ecx
je 0x5860d0
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call edi
test eax, eax
jne 0x5860d0
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call edi
test eax, eax
jne 0x5860d0
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call edi
test eax, eax
je 0x5860d7
mov dword [ebx + 0x18], 1
cmp ebp, 0xa
mov dword [esi + 0xa80], ebp
ja case.0x5860e2.9
jmp dword [ebp*4 + 0x586188]
push str.._txtMissionzhuxian.txt
jmp 0x58614f
push str.._txtMissionzhixian.txt
jmp 0x58614f
push str.._txtMissionjianzong.txt
jmp 0x58614f
push str..TxtMissionjimen.txt
jmp 0x58614f
push str..TxtMissionguiliu.txt
jmp 0x58614f
push str..TxtMissionhuandao.txt
jmp 0x58614f
push str..TxtMission_richang.txt
jmp 0x58614f
push str..TxtMissionchenghao.txt
jmp 0x58614f
push str..TxtMissionqita.txt
jmp 0x58614f
mov eax, dword [0x6d6860]
cmp eax, 0x1f
jge 0x586139
push str..TxtMission0_30.txt
jmp 0x58614f
cmp eax, 0x3d
jge 0x586145
push str..TxtMission30_60.txt
jmp 0x58614f
cmp eax, 0x51
jg case.0x5860e2.9
push str..TxtMission61_80.txt
lea ecx, [esi + 0xa84]
call fcn.0042d890
mov eax, dword [esi + 0x78]
inc ebp
cmp ebp, eax
jl 0x585fea
pop edi
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
push eax
push 0
lea ecx, [esi + 0xa84]
call fcn.0042db50
pop ebp
pop ebx
pop esi
add esp, 0x30
ret