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

Disassembly:
sub esp, 0x30
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x5476c5
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, [edi + 0x4c]
push eax
call ebx
test eax, eax
je 0x547539
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 0x547532
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call ebx
test eax, eax
jne 0x547532
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call ebx
test eax, eax
jne 0x547532
mov ecx, dword [0xcf95d4]
mov edx, dword [0xcf95d0]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call ebx
test eax, eax
je 0x547539
mov dword [edi + 0x64], 1
mov ecx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov edx, dword [edi + 0x6c]
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x54755a
mov ecx, dword [edi + 0x6c]
mov dword [ecx + 0x10], 1
mov eax, dword [edi + 0x78]
xor ebp, ebp
test eax, eax
jle 0x5476a9
push esi
jmp 0x547570
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [0xcf95d4]
mov eax, dword [edi + 0x68]
mov ecx, dword [0xcf95d0]
lea esi, [ebp*8]
sub esi, ebp
push edx
shl esi, 2
add eax, esi
push ecx
push eax
call ebx
test eax, eax
je case.default.0x547662
mov ebx, dword [edi + 0x68]
mov eax, 0x1c7
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [0xcea298]
add ebx, esi
mov ecx, 0x1b3
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 + 0x24], ecx
mov dword [esp + 0x28], 0x1c8
mov dword [esp + 0x10], 0x21f
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x244
je 0x547650
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
mov esi, dword [sym.imp.USER32.dll_PtInRect]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call esi
test eax, eax
jne 0x547650
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call esi
test eax, eax
jne 0x547650
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call esi
test eax, eax
je 0x547657
mov dword [ebx + 0x18], 1
cmp ebp, 5
mov dword [edi + 0xa80], ebp
ja case.default.0x547662
jmp dword [ebp*4 + 0x5476cc]
push str.._txthero_bj2.txt
jmp 0x547691
push str..Txthero_bj3.txt
jmp 0x547691
push str..Txthero_sc3.txt
jmp 0x547691
push str..Txthero_sc4.txt
jmp 0x547691
push str..Txtherowh1.txt
jmp 0x547691
push str..Txtherowh2.txt
lea ecx, [edi + 0xa84]
call fcn.0042d890
mov eax, dword [edi + 0x78]
inc ebp
cmp ebp, eax
jl 0x54756a
pop esi
mov edx, dword [0xcf95d4]
mov eax, dword [0xcf95d0]
push edx
push eax
push 0
lea ecx, [edi + 0xa84]
call fcn.0042db50
pop ebp
pop ebx
pop edi
add esp, 0x30
ret