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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov ecx, dword [ebp + 0xc]
mov eax, 5
sub eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], eax
push ebx
fild dword [esp + 8]
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
fmul qword [0x458330]
fadd qword [0x458328]
fstp qword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [ecx]
mov esi, eax
dec esi
js 0x42a655
fld qword [esp + 0x20]
fadd qword [0x458320]
fmul qword [0x458318]
fild dword [esp + 0x14]
fld st(0)
fadd st(2)
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x10]
mov edi, eax
fstp qword [esp + 0x30]
fld qword [0x458320]
fsub qword [esp + 0x20]
fmul qword [0x458318]
fstp qword [esp + 0x28]
fadd qword [esp + 0x28]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x30]
fadd st(1)
mov ebx, eax
push edi
call sub.MSVCRT.dll__ftol
fstp st(0)
fld qword [esp + 0x34]
fadd qword [esp + 0x2c]
push eax
push ebx
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x48]
push eax
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esi*4]
push edi
sub eax, esi
neg eax
shl eax, 4
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fld st(0)
fadd qword [0x458310]
fmul qword [esp + 0x24]
fadd qword [esp + 0x34]
fadd qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
fmul qword [esp + 0x24]
push eax
push ebx
fadd qword [esp + 0x3c]
fadd qword [esp + 0x34]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [0x48f138]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [esp + 0x8c]
mov edx, dword [eax + 0x3104]
mov eax, dword [eax + 0x3100]
push edx
push eax
push ecx
call edi
mov eax, dword [0x48f138]
lea ecx, [esp + 0x3c]
mov edx, dword [eax + 0x3104]
mov eax, dword [eax + 0x3100]
push edx
push eax
push ecx
call edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, 0x30
xor edi, edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
fld qword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
fst dword [esp + 0x6c]
fstp dword [esp + 0x70]
fld dword [esp + 0x6c]
push edx
push ecx
lea eax, [esi + esi*2]
sub esp, 8
shl eax, 4
fstp qword [esp]
push eax
push esi
push str._d__d__f__d__d
lea edx, [esp + 0xb8]
push 0x64
push edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
cmp esi, 6
jne 0x42a69e
mov eax, dword [0x48f138]
push edi
lea ecx, [eax + 0xb3c]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
ja 0x42a6bd
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x50]
push eax
mov eax, dword [0x48f138]
push edi
push ecx
push edx
lea ecx, [eax + 0x98c]
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
add eax, 0x30
inc esi
cmp eax, 0x180
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
jl 0x42a4a0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add eax, 0x30
add esi, 0x19
cmp eax, 0x180
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
jl 0x42a490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 5
jne 0x42a635
mov ecx, dword [0x48f138]
push edi
add ecx, 0xb60
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
jbe 0x42a635
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x50]
mov dword [esp + 0x50], edi
push edx
push edi
push eax
lea edx, [esi + esi*8]
push ecx
mov ecx, dword [0x48f138]
shl edx, 2
sub ecx, edx
add ecx, 0xc14
jmp 0x42a650