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

Disassembly:
push 0xffffffffffffffff
push 0x72a2c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x7cb478
call fcn.004d51b0
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x14], eax
mov byte [esi + 0x198], 0
mov eax, dword [ecx]
push 1
call dword [eax + 0x50]
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
push 1
call dword [eax + 0x50]
mov eax, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 0x1d4], eax
mov dword [esp + 0x28], ebp
mov ecx, dword [esi + 0x30]
mov eax, dword [eax]
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, ebx
mov dword [esp + 0x20], ebp
call fcn.004f1ab0
mov edi, eax
test edi, edi
je 0x4416a0
mov al, byte [edi + 0x30]
xor dl, dl
cmp al, 2
jne 0x441692
lea eax, [edi + 0x34]
mov ecx, 8
cmp word [eax], 0x84
jne 0x441678
mov dl, 1
add eax, 0x18
dec ecx
jne 0x44166f
test dl, dl
jne 0x441692
mov edx, dword [esp + 0x10]
push edi
lea ecx, [edx + 0x320]
call fcn.0047e360
push edi
mov ecx, ebx
call fcn.004f1aa0
mov edi, eax
test edi, edi
jne 0x44165e
mov eax, dword [esi + 0x1d0]
test eax, eax
jne 0x4418dc
mov ecx, dword [esi + 0x1d4]
call fcn.0048e350
mov ecx, eax
call fcn.004e22f0
test al, al
je 0x441711
mov ecx, dword [esi + 0x1d4]
call fcn.0048e350
mov ecx, eax
call fcn.004e2320
test al, al
jne 0x441711
xor edi, edi
mov ecx, dword [esi + 0x1d4]
call fcn.0048e350
mov ecx, eax
call fcn.004e22f0
test al, al
je 0x441735
mov ecx, dword [esi + 0x1d4]
call fcn.0048e350
mov ecx, eax
call fcn.004e2320
test al, al
jne 0x441735
mov dword [esi + 0x3c], 0
jmp 0x44173b
mov ecx, dword [esi + 0x1d4]
call fcn.0048e350
mov ecx, eax
call fcn.004e28d0
mov edi, eax
test edi, edi
je 0x4416dc
mov eax, dword [edi + 0x74]
mov eax, dword [esi + eax*4 + 0x14]
mov dword [esi + 0x3c], eax
jmp 0x44173b
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x3c], ecx
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [esi + 0x1d0], edi
je 0x4418dc
mov ecx, dword [esi + 0x80]
push 4
lea edx, [esp + 0x14]
push edx
call fcn.006ead20
mov eax, dword [eax]
test eax, eax
je 0x44176f
mov ecx, dword [eax + 4]
inc ecx
mov dword [esp + 0x28], eax
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov byte [esp + 0x20], 0
je 0x441795
mov edi, dword [ecx + 4]
lea eax, [ecx + 4]
dec edi
mov edx, edi
test edx, edx
mov dword [eax], edi
jne 0x441795
test ecx, ecx
je 0x441795
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x3c]
mov edi, dword [esp + 0x14]
add ecx, 0x104
push edi
push ecx
call fcn.0047a960
add esp, 8
test eax, eax
jne 0x4417db
mov edx, dword [esi + 0x3c]
add edx, 0x104
push edx
push str.Weather__s_texture_not_found.
call fcn.00476e20
add esp, 8
push str.Textures
push str._s_tx_mooncircle_full_M.tga
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x7de3b4
push edi
call fcn.006de7f0
mov ebx, dword [esp + 0x30]
mov ebp, eax
mov eax, dword [ebx + 0x20]
mov edi, dword [eax]
add esp, 8
test edi, edi
jne 0x4418b4
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
je 0x441868
lea ecx, [edi + 4]
mov dword [ecx], 0
mov ebx, 3
push 0
mov byte [esp + 0x24], bl
mov dword [edi], 0x7465e8
call fcn.00471b00
xor eax, eax
mov dword [edi + 8], ebx
mov ebx, dword [esp + 0x28]
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], 1
mov word [0x7de468], ax
mov byte [0x7de46a], al
mov byte [0x7de46b], al
mov eax, dword [0x7de46c]
inc eax
mov word [0x7c4e3c], 0xffb5
mov dword [0x7de46c], eax
jmp 0x44186a
xor edi, edi
mov eax, dword [ebx + 0x24]
test eax, eax
mov byte [esp + 0x20], 0
jbe 0x4418b4
mov eax, dword [ebx + 0x28]
test eax, eax
ja 0x44188e
test edi, edi
mov dword [ebx + 0x28], 1
je 0x4418af
mov eax, dword [ebx + 0x2c]
inc eax
jmp 0x4418ac
test edi, edi
je 0x4418a0
mov ecx, dword [ebx + 0x20]
cmp dword [ecx], 0
jne 0x4418af
mov eax, dword [ebx + 0x2c]
inc eax
jmp 0x4418ac
mov edx, dword [ebx + 0x20]
cmp dword [edx], 0
je 0x4418af
mov eax, dword [ebx + 0x2c]
dec eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [eax], edi
mov ecx, dword [edi + 4]
cmp ecx, ebp
je 0x4418d8
test ecx, ecx
je 0x4418ce
dec dword [ecx + 4]
jne 0x4418ce
test ecx, ecx
je 0x4418ce
mov edx, dword [ecx]
push 1
call dword [edx]
test ebp, ebp
mov dword [edi + 4], ebp
je 0x4418d8
inc dword [ebp + 4]
mov ebp, dword [esp + 0x28]
mov al, byte [esi + 0x10]
test al, al
jne 0x441958
fld dword [0x746468]
mov byte [esi + 0x10], 1
fcomp dword [esp + 0x2c]
mov dword [esi + 0x174], 0
fnstsw ax
test ah, 0x41
je 0x44191f
fld dword [esi + 0x174]
fadd dword [esi + 0x16c]
fst dword [esi + 0x174]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x441902
fld dword [esi + 0x174]
fcomp dword [0x74661c]
fnstsw ax
test ah, 1
jne 0x441958
fld dword [esi + 0x174]
mov eax, dword [esi + 0xc]
fsub dword [0x74661c]
inc eax
mov dword [esi + 0xc], eax
fst dword [esi + 0x174]
fcomp dword [0x74661c]
fnstsw ax
test ah, 1
je 0x441932
test ebp, ebp
mov dword [esp + 0x20], 0xffffffff
je 0x441972
dec dword [ebp + 4]
jne 0x441972
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8