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

Disassembly:
push 0xffffffffffffffff
push 0x43ef73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push fcn.0042a6b0
push 0x401360
mov esi, ecx
push 4
push 0x1c
lea edi, [esi + 4]
push edi
mov dword [esp + 0x24], esi
call fcn.004322cf
xor ebx, ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0x758], ebx
mov dword [esi + 0x754], ebx
mov dword [esi + 0x750], ebx
mov dword [esi + 0x74c], ebx
mov dword [esi + 0x768], ebx
mov dword [esi + 0x764], ebx
mov dword [esi + 0x760], ebx
mov dword [esi + 0x75c], ebx
mov dword [esi + 0x778], ebx
mov dword [esi + 0x774], ebx
mov dword [esi + 0x770], ebx
mov dword [esi + 0x76c], ebx
mov dword [esi + 0x788], ebx
mov dword [esi + 0x784], ebx
mov dword [esi + 0x780], ebx
mov dword [esi + 0x77c], ebx
mov dword [esi + 0x798], ebx
mov dword [esi + 0x794], ebx
mov dword [esi + 0x790], ebx
mov dword [esi + 0x78c], ebx
mov eax, dword [esp + 0x34]
mov dword [esi + 0x7a8], ebx
mov dword [esi + 0x7a4], ebx
mov dword [esi + 0x7a0], ebx
mov dword [esi + 0x79c], ebx
mov dword [esi + 0x7b8], ebx
mov dword [esi + 0x7b4], ebx
mov dword [esi + 0x7b0], ebx
mov dword [esi + 0x7ac], ebx
mov dword [esi + 0x7c8], ebx
mov dword [esi + 0x7c4], ebx
mov dword [esi + 0x7c0], ebx
mov dword [esi + 0x7bc], ebx
mov dword [esi + 0x7d8], ebx
mov dword [esi + 0x7d4], ebx
mov dword [esi + 0x7d0], ebx
mov dword [esi + 0x7cc], ebx
mov ecx, 1
mov dword [esi], eax
mov eax, 2
push 0xc
mov dword [esi + 0xe0], ecx
mov dword [esi + 0xf0], ecx
push str.bgjungle.png
mov ecx, edi
mov dword [esp + 0x34], ebx
mov dword [esi + 0xc0], 0xff15092a
mov dword [esi + 0xc4], 0xff6c6480
mov dword [esi + 0xc8], 0xff89b9d0
mov dword [esi + 0xcc], 0xff303e57
mov dword [esi + 0xd0], 0xffac7963
mov dword [esi + 0xd4], 0xffcad7db
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], eax
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
call fcn.00401c50
push 0xc
push str.bgcanyon.png
lea ecx, [esi + 0x20]
call fcn.00401c50
push 0xc
push str.bgdesert.png
lea ecx, [esi + 0x3c]
call fcn.00401c50
push 0xa
push str.bgcity.png
lea ecx, [esi + 0x58]
call fcn.00401c50
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push str.objects.png
push eax
call dword [ecx + 0x118]
mov edx, dword [esp + 0x38]
imul edx, edx, 0x1c
mov dword [esi + 0x74], eax
mov ecx, dword [edx + esi + 0x1c]
cmp ecx, 0x10
lea eax, [edx + esi + 4]
jb 0x405fc9
mov eax, dword [eax + 4]
jmp 0x405fcc
add eax, 4
mov ecx, dword [esi]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x118]
xor ebp, ebp
mov dword [esi + 0x78], eax
mov dword [esp + 0x34], ebp
lea edi, [esi + 0x88]
jmp 0x405ff0
push 0x8c
call fcn.00430d06
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x2c], 1
je 0x40602f
fild dword [esp + 0x34]
mov edx, dword [esi + 0x78]
push 0x44000000
push 0x43800000
push ebx
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
push ecx
push edx
mov ecx, eax
call fcn.0042eb20
jmp 0x406031
xor eax, eax
add ebp, 0x100
mov dword [edi], eax
add edi, 4
cmp ebp, 0x400
mov byte [esp + 0x2c], bl
mov dword [esp + 0x34], ebp
jl 0x405ff0
xor ebp, ebp
mov dword [esp + 0x34], ebp
lea edi, [esi + 0x98]
jmp 0x406060
push 0x8c
call fcn.00430d06
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x2c], 2
je 0x4060a3
fild dword [esp + 0x34]
mov edx, dword [esi + 0x78]
push 0x44000000
push 0x43800000
push 0x44004000
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
push ecx
push edx
mov ecx, eax
call fcn.0042eb20
jmp 0x4060a5
xor eax, eax
add ebp, 0x100
mov dword [edi], eax
add edi, 4
cmp ebp, 0x400
mov byte [esp + 0x2c], bl
mov dword [esp + 0x34], ebp
jl 0x406060
push 0x8c
call fcn.00430d06
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x2c], 3
je 0x4060f0
push 0x44160000
push 0x44480000
push ebx
push ebx
push ebx
mov ecx, eax
call fcn.0042eb20
jmp 0x4060f2
xor eax, eax
push 0x8c
mov byte [esp + 0x30], bl
mov dword [esi + 0x7c], eax
call fcn.00430d06
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x2c], 4
je 0x406130
mov ecx, dword [esi + 0x74]
push 0x42e40000
push 0x42e40000
push ebx
push 0x42a20000
push ecx
mov ecx, eax
call fcn.0042eb20
jmp 0x406132
xor eax, eax
mov ecx, 0x42640000
mov dword [esi + 0x80], eax
push 0x8c
mov byte [esp + 0x30], bl
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
call fcn.00430d06
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x2c], 5
je 0x406180
mov edx, dword [esi + 0x74]
push 0x42a20000
push 0x42a20000
push ebx
push ebx
push edx
mov ecx, eax
call fcn.0042eb20
jmp 0x406182
xor eax, eax
mov ecx, 0x42200000
mov dword [esi + 0x84], eax
push 0x8c
mov byte [esp + 0x30], bl
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
call fcn.00430d06
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x2c], 6
je 0x4061d8
mov ecx, dword [esi + 0x74]
push 0x41100000
push 0x41100000
push 0x42a20000
push 0x42900000
push ecx
mov ecx, eax
call fcn.0042eb20
jmp 0x4061da
xor eax, eax
mov ecx, 0x40a00000
mov dword [esi + 0xac], eax
push 0x8c
mov byte [esp + 0x30], bl
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
call fcn.00430d06
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0x2c], 7
je 0x406230
mov edx, dword [esi + 0x74]
push 0x43000000
push 0x43000000
push 0x43000000
push 0x43000000
push edx
mov ecx, eax
call fcn.0042eb20
jmp 0x406232
xor eax, eax
mov dword [esi + 0xa8], eax
mov ecx, 0x42800000
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
mov eax, dword [esi + 0xa8]
push 0xffffffffffffffff
lea ecx, [esi + 0xb0]
mov byte [esp + 0x30], bl
mov dword [eax + 0x64], 3
call fcn.00404c30
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.kernel32.dll_GetLocalTime]
movzx edx, word [esp + 0x20]
mov dword [esp + 0x34], edx
movzx eax, word [esp + 0x1e]
fild dword [esp + 0x34]
movzx ecx, word [esp + 0x1c]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fdiv dword [0x441400]
mov dword [esp + 0x34], eax
mov dword [esi + 0x100], ebx
lea edi, [esi + 0x29c]
mov ebp, 0x64
fild dword [esp + 0x34]
fstp dword [esp + 0x34]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
mov dword [esp + 0x34], ecx
fdiv dword [0x441400]
fild dword [esp + 0x34]
fstp dword [esp + 0x34]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [esi + 0xfc], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push 0x44480000
push ebx
push eax
call dword [ecx + 0x68]
fstp dword [edi - 0x190]
mov eax, dword [esi]
mov edx, dword [eax]
push 0x44160000
push ebx
push eax
call dword [edx + 0x68]
fstp dword [edi]
mov eax, dword [esi]
mov ecx, dword [eax]
push 0x3f333333
push 0x3dcccccd
push eax
call dword [ecx + 0x68]
fstp dword [edi + 0x190]
add edi, 4
dec ebp
jne 0x4062e4
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8