Function at 0x40b4f0
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45326b
push eax
mov eax, 0x10b8
mov dword fs:[0], esp
call fcn.00432cd0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x4939e0
call fcn.00424680
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10ec]
mov ecx, 0x48bb3c
push eax
call fcn.0041a6e0
lea ecx, [esp + 0xbc]
mov dword [esp + 0x2c], eax
call fcn.00431530
mov ecx, dword [esp + 0x10e8]
mov edx, dword [esp + 0x10e4]
mov eax, dword [esp + 0x10dc]
push ecx
mov ecx, dword [esp + 0x10dc]
push edx
push eax
push ecx
push 0x30
push 6
lea ecx, [esp + 0xd4]
mov dword [esp + 0x10e8], 0
call fcn.00431590
lea ecx, [esp + 0xbc]
call fcn.00431790
mov edx, dword [0x48f138]
push 0
mov edi, eax
lea ecx, [edx + 0x2dd4]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
ja 0x40b5c4
mov eax, dword [0x48f138]
push 0
push 0
push 0
push str.resotherpool.mif
lea ecx, [eax + 0x2dd4]
call sym.twinrpg.exe_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
test edi, edi
jne 0x40b9db
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, esi
call fcn.0040dc60
mov eax, dword [0x48eb90]
xor ebx, ebx
cmp eax, ebx
mov eax, dword [0x48f138]
push ebx
push ebx
mov ecx, dword [eax + 0x3104]
jne 0x40b603
mov edx, dword [eax + 0x3100]
push ecx
push edx
lea ecx, [eax + 0x2dd4]
jmp 0x40b613
mov edx, dword [eax + 0x3100]
dec ecx
dec edx
push ecx
push edx
lea ecx, [eax + 0x2ef4]
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x10e0]
lea ecx, [esp + 0xbc]
push eax
call fcn.00431660
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x40b64b
xor ebx, ebx
mov ecx, dword [esp + 0x10e0]
mov edx, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], 0x150
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
jmp 0x40b674
xor ebx, ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov al, byte [edx + eax]
test al, al
je 0x40b758
and eax, 0xff
mov ecx, 0xf
dec eax
lea edi, [esp + 0x34]
mov ebp, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [ebp + ebp*2]
mov eax, 0x30
shl ecx, 4
cmp ebp, 6
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ecx
jne 0x40b7cf
push ebx
lea ecx, [esi + 0xb3c]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
ja 0x40b7ec
mov ecx, dword [esp + 0x14]
mov edi, dword [esi + 0x3104]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
add ecx, edi
push ebx
push ecx
mov ecx, dword [esi + 0x3100]
add edx, ecx
lea ecx, [esi + 0x98c]
push edx
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 4]
call fcn.00430110
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add eax, edi
xor ecx, ecx
mov cl, byte [eax + edx]
mov eax, ecx
dec eax
cmp eax, 0xffffffff
je 0x40b758
mov ecx, dword [esi + 0x3104]
mov edx, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [edx + ecx + 0x18]
mov edx, dword [esi + 0x3100]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*8]
lea edx, [ecx + edx + 0x18]
mov ecx, dword [0x48f138]
push edx
lea ecx, [ecx + eax*4 + 0x1610]
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
test al, al
je 0x40b924
mov edx, dword [ecx + 8]
and eax, 0xff
dec eax
mov ebx, eax
mov eax, dword [esp + 0x28]
test edx, edx
mov ebp, eax
jne 0x40b780
mov ebp, dword [ecx + 4]
add ebp, eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x70]
lea edx, [ebx + ebx*2]
rep stosd dword es:[edi], eax
mov eax, 0x30
mov dword [esp + 0x74], 0
shl edx, 4
test ebp, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x70], edx
jl 0x40b924
cmp ebx, 6
jne 0x40b826
push 0
lea ecx, [esi + 0xb3c]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
ja 0x40b83c
jmp 0x40b873
cmp ebp, 5
jne 0x40b6d5
push ebx
lea ecx, [esi + 0xb60]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
jbe 0x40b6d5
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3104]
lea edx, [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esi + 0x3100]
push ebx
add ecx, edx
push eax
lea edx, [ebp + ebp*8]
push ecx
shl edx, 2
mov ecx, esi
mov dword [esp + 0x44], ebx
sub ecx, edx
add ecx, 0xc14
jmp 0x40b6fb
cmp ebx, 5
jne 0x40b873
push 0
lea ecx, [esi + 0xb60]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
jbe 0x40b873
mov ecx, dword [esi + 0x3104]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x70]
add ecx, ebp
push eax
push 0
push ecx
mov ecx, dword [esi + 0x3100]
lea eax, [ebx + ebx*8]
add edx, ecx
shl eax, 2
mov ecx, esi
mov dword [esp + 0x7c], 0
sub ecx, eax
push edx
add ecx, 0xc14
jmp 0x40b896
mov edx, dword [esi + 0x3104]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x70]
add edx, ebp
push ecx
push 0
push edx
mov edx, dword [esi + 0x3100]
add eax, edx
lea ecx, [esi + 0x98c]
push eax
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
xor ecx, ecx
sub esp, 0x10
mov cl, byte [edx + 0x800]
mov edi, ecx
mov ecx, dword [esi + 0x3100]
add eax, ecx
mov ecx, dword [esi + 0x3104]
add ecx, ebp
dec edi
lea edx, [eax + 0x30]
lea ebx, [ecx + 0x30]
mov dword [esp + 0xc8], ebx
mov ebx, esp
mov dword [ebx], eax
mov eax, dword [esp + 0xc8]
mov dword [ebx + 4], ecx
mov ecx, 0x4939e0
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
call fcn.00424b60
cmp edi, 0xffffffff
je 0x40b924
mov ecx, dword [esi + 0x3104]
mov eax, dword [esi + 0x3100]
push 0
push 0
lea edx, [ecx + ebp + 0x18]
mov ecx, dword [esp + 0x18]
push edx
lea edx, [ecx + eax + 0x18]
mov ecx, dword [0x48f138]
lea eax, [edi + edi*8]
push edx
lea ecx, [ecx + eax*4 + 0x1610]
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ecx, 0x30
add ebp, 0x10
sub eax, ecx
add ebx, ecx
cmp eax, 0xffffffa0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], eax
jg 0x40b672
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
add eax, 0x19
add ebx, 0x100
add edx, ecx
cmp eax, 0xc8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jl 0x40b649
mov ecx, 0x4939e0
call fcn.00424ce0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0xbc]
call fcn.00431790
mov ecx, dword [esi + 0x30]
push edi
push 0x493e1c
mov ebx, eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, 0x4939e0
call fcn.00424c70
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x493e10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
test ebx, ebx
je 0x40b5cc
mov ecx, 0x4939e0
call fcn.004246c0
lea ecx, [esp + 0xbc]
mov dword [esp + 0x10d0], 0xffffffff
call fcn.00431580
mov ecx, dword [esp + 0x10c8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10c4
ret 0x18