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

Disassembly:
push 0xffffffffffffffff
push 0x72a28e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x7cb478
call fcn.004d51b0
xor ebp, ebp
mov ebx, eax
mov dword [esp + 0x10], ebp
mov eax, dword [0x7c67dc]
mov ecx, dword [eax + 0xb8]
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x14], edx
fld dword [esp + 0x14]
fld qword [0x746bc0]
mov dword [esp + 0x4c], ebp
call sub.MSVCRT.dll__CIfmod
mov edi, dword [esi + 0x50]
fmul dword [0x746bb0]
push 0x3f800000
push ebp
fmul dword [0x7469c4]
fld dword [esp + 0x68]
push ebp
fmul dword [0x746bbc]
lea ecx, [esp + 0x2c]
fmul dword [0x746bb8]
faddp st(1)
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
push eax
call fcn.006e7de0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [edi + 0x2c]
call fcn.006e93d0
push 1
mov ecx, esi
call fcn.00452ae0
test al, al
jne 0x440d33
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
push 5
mov ecx, esi
call fcn.00452ae0
test al, al
jne 0x440d4a
mov ecx, dword [esi + 0x60]
mov eax, dword [ecx]
push 1
call dword [eax + 0x50]
fld dword [esi + 0x170]
fcomp dword [0x746470]
fnstsw ax
test ah, 1
jne 0x44100a
mov ecx, dword [0x7de6cc]
mov dword [esi + 0xc4], ecx
mov edx, dword [0x7de6d0]
mov dword [esi + 0xc8], edx
mov eax, dword [0x7de6d4]
mov dword [esi + 0xcc], eax
mov dword [esi + 0xb8], ecx
mov edx, dword [esi + 0xc8]
mov dword [esi + 0xbc], edx
mov eax, dword [esi + 0xcc]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0x40]
xor edi, edi
cmp eax, edi
je 0x440f15
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x80]
push 4
lea edx, [esp + 0x18]
push edx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x170], edi
call fcn.006ead20
mov eax, dword [eax]
cmp eax, edi
je 0x440deb
mov ecx, dword [eax + 4]
mov ebp, eax
inc ecx
mov dword [esp + 0x10], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
cmp ecx, edi
mov byte [esp + 0x4c], 0
je 0x440e0f
mov edx, dword [ecx + 4]
lea eax, [ecx + 4]
dec edx
cmp edx, edi
mov dword [eax], edx
jne 0x440e0f
cmp ecx, edi
je 0x440e0f
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x3c]
add ecx, 0x104
push ebx
push ecx
call fcn.0047a960
add esp, 8
test eax, eax
jne 0x440e51
mov edx, dword [esi + 0x3c]
add edx, 0x104
push edx
push str.Weather__s_texture_not_found.
call fcn.00477400
add esp, 8
push str.Textures
push str._s_tx_mooncircle_full_M.tga
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x7de3b4
push ebx
call fcn.006de7f0
mov edi, eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x440eac
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x4c], 2
je 0x440e8e
mov ecx, eax
call fcn.0042dcd0
jmp 0x440e90
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
push 0
lea ecx, [ebp + 0x1c]
mov byte [esp + 0x54], 0
mov dword [esp + 0x1c], eax
call fcn.004975d0
mov eax, dword [esp + 0x14]
push edi
lea ecx, [eax + 4]
call fcn.00471b00
mov eax, dword [esi + 0x84]
mov eax, dword [eax + 0x98]
mov ecx, dword [eax + 0x28]
mov ax, word [eax + 8]
mov ebx, dword [esi + 0x80]
mov edx, dword [ebx + 0x98]
mov edx, dword [edx + 0x28]
and eax, 0xffff
mov ebp, eax
jle 0x440efa
mov edi, ecx
lea eax, [edx + 4]
sub edi, edx
mov edx, dword [ecx]
mov dword [eax - 4], edx
mov edx, dword [edi + eax]
mov dword [eax], edx
add ecx, 8
add eax, 8
dec ebp
jne 0x440ee7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x3c]
mov ecx, dword [ebx + 0x98]
call fcn.00414890
mov ebp, dword [esp + 0x10]
jmp 0x44100a
mov ecx, dword [esi + 0x80]
push 4
lea edx, [esp + 0x18]
push edx
mov dword [esi + 0x170], edi
call fcn.006ead20
mov eax, dword [eax]
cmp eax, edi
je 0x440f40
mov ecx, dword [eax + 4]
mov ebp, eax
inc ecx
mov dword [esp + 0x10], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
cmp ecx, edi
mov byte [esp + 0x4c], 0
je 0x440f64
mov edx, dword [ecx + 4]
lea eax, [ecx + 4]
dec edx
cmp edx, edi
mov dword [eax], edx
jne 0x440f64
cmp ecx, edi
je 0x440f64
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x3c]
add ecx, 0x104
push ebx
push ecx
call fcn.0047a960
add esp, 8
test eax, eax
jne 0x440fa6
mov edx, dword [esi + 0x3c]
add edx, 0x104
push edx
push str.Weather__s_texture_not_found.
call fcn.00477400
add esp, 8
push str.Textures
push str._s_tx_mooncircle_full_M.tga
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x7de3b4
push ebx
call fcn.006de7f0
mov edi, eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x441001
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x4c], 4
je 0x440fe3
mov ecx, eax
call fcn.0042dcd0
jmp 0x440fe5
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
push 0
lea ecx, [ebp + 0x1c]
mov byte [esp + 0x54], 0
mov dword [esp + 0x1c], eax
call fcn.004975d0
mov eax, dword [esp + 0x14]
push edi
lea ecx, [eax + 4]
call fcn.00471b00
fld dword [esi + 0x170]
fcomp dword [0x746468]
fnstsw ax
test ah, 0x41
jne 0x441033
mov edx, dword [esi + 0x40]
fld dword [esp + 0x58]
fmul dword [edx + 8]
fadd dword [esi + 0x170]
fstp dword [esi + 0x170]
fld dword [esi + 0x170]
fcomp dword [0x746470]
fnstsw ax
test ah, 1
je 0x44104e
fld dword [esi + 0x170]
jmp 0x441054
fld dword [0x746470]
mov eax, dword [esi + 0x40]
fstp dword [esi + 0x170]
test eax, eax
je 0x441089
xor eax, eax
mov ax, word [0x7d7448]
push eax
call fcn.00595370
add esp, 4
test eax, eax
je 0x441089
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx + 4]
push 0x3f800000
push edx
mov ecx, esi
call fcn.00441c40
mov al, byte [esp + 0x5c]
test al, al
je 0x441554
mov ecx, dword [esi + 0x3c]
test ecx, ecx
mov edi, dword [esp + 0x58]
je 0x4410be
fld dword [0x746470]
mov eax, dword [ecx]
fsub dword [esi + 0x170]
push edi
push ecx
fstp dword [esp]
call dword [eax + 4]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4410dc
mov edx, dword [esi + 0x170]
mov eax, dword [ecx]
push edi
push edx
call dword [eax + 4]
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x441115
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + 4], 6
je 0x4410ef
mov ecx, dword [esi + 0x70]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
mov eax, dword [esi + 0x3c]
cmp dword [eax + 4], 7
je 0x441102
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
mov eax, dword [esi + 0x3c]
cmp dword [eax + 4], 9
je 0x441115
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
mov eax, dword [esp + 0x60]
push eax
mov ecx, esi
call fcn.00443fb0
mov al, byte [esi + 0x199]
test al, al
je 0x44114a
mov ecx, dword [0x7c67dc]
fstp st(0)
mov edx, dword [ecx + 0xa8]
mov eax, dword [edx + 0x34]
mov ecx, eax
push ecx
mov ecx, esi
mov dword [esp + 0x60], eax
call fcn.00444250
fcom dword [0x746468]
fnstsw ax
test ah, 1
je 0x44115f
fstp st(0)
fld dword [0x746468]
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
fstp dword [ecx + 0x18]
push 0
call dword [edx + 0x30]
mov eax, dword [esi + 0x13c]
test eax, eax
jbe 0x4411d7
push 1
mov ecx, esi
call fcn.00452ae0
test al, al
jne 0x4411d7
lea ebx, [esi + 0x144]
mov ecx, ebx
call fcn.0047e710
mov ebp, eax
test ebp, ebp
je 0x4411d7
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp eax, 1
jne 0x4411ca
push ebp
mov ecx, ebx
call fcn.0047e610
mov ecx, dword [edi + 0x30]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
push edi
lea ecx, [esi + 0x158]
call fcn.0047e360
dec dword [esi + 0x13c]
mov ecx, ebx
call fcn.0047e720
mov ebp, eax
test ebp, ebp
jne 0x441197
mov eax, dword [esi + 0x140]
test eax, eax
jbe 0x441241
push 5
mov ecx, esi
call fcn.00452ae0
test al, al
jne 0x441241
lea ebx, [esi + 0x144]
mov ecx, ebx
call fcn.0047e710
mov ebp, eax
test ebp, ebp
je 0x441241
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp eax, 5
jne 0x441234
push ebp
mov ecx, ebx
call fcn.0047e610
mov ecx, dword [edi + 0x30]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
push edi
lea ecx, [esi + 0x158]
call fcn.0047e360
dec dword [esi + 0x140]
mov ecx, ebx
call fcn.0047e720
mov ebp, eax
test ebp, ebp
jne 0x441201
mov eax, dword [esi + 0x148]
xor edi, edi
cmp eax, edi
jbe 0x441516
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
mov dword [esp + 0x5c], edi
je 0x4412ae
mov eax, dword [ecx + 4]
cmp eax, 4
jne 0x44127a
mov dl, byte [esi + 0x19a]
test dl, dl
je 0x44127a
mov eax, dword [ecx + 0x430]
mov dword [esp + 0x5c], eax
jmp 0x4412ae
cmp eax, 5
jne 0x441295
mov dl, byte [esi + 0x19a]
test dl, dl
je 0x441295
mov ecx, dword [ecx + 0x860]
mov dword [esp + 0x5c], ecx
jmp 0x4412ae
cmp eax, 8
jne 0x4412ae
mov al, byte [esi + 0x19b]
test al, al
je 0x4412ae
mov edx, dword [ecx + 0x32c]
mov dword [esp + 0x5c], edx
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x44133b
mov ecx, dword [eax + 4]
cmp ecx, 4
jne 0x4412e3
mov dl, byte [esi + 0x19a]
test dl, dl
je 0x4412e3
fld dword [0x746470]
fsub dword [esi + 0x170]
fmul dword [esp + 0x5c]
fld dword [eax + 0x430]
jmp 0x44132f
cmp ecx, 5
jne 0x44130a
mov dl, byte [esi + 0x19a]
test dl, dl
je 0x44130a
fld dword [0x746470]
fsub dword [esi + 0x170]
fmul dword [esp + 0x5c]
fld dword [eax + 0x860]
jmp 0x44132f
cmp ecx, 8
jne 0x44133b
mov cl, byte [esi + 0x19b]
test cl, cl
je 0x44133b
fld dword [0x746470]
fsub dword [esi + 0x170]
fmul dword [esp + 0x5c]
fld dword [eax + 0x32c]
fmul dword [esi + 0x170]
faddp st(1)
fstp dword [esp + 0x5c]
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
call dword [eax + 0x54]
test al, al
jne 0x44144f
mov ecx, dword [0x7c67e0]
cmp ecx, edi
je 0x44138e
call fcn.0048e350
test eax, eax
je 0x44138e
mov ecx, dword [0x7c67e0]
call fcn.0048e350
mov ecx, eax
call fcn.004e22f0
test al, al
je 0x44138e
mov ecx, dword [0x7c67e0]
call fcn.0048e350
mov ecx, eax
call fcn.004e2320
test al, al
je 0x44144f
mov al, byte [esi + 0x19a]
test al, al
je 0x441411
push 1
mov ecx, esi
call fcn.00452ae0
test al, al
je 0x441411
mov al, byte [esi + 0x19b]
test al, al
je 0x4413ea
push 5
mov ecx, esi
call fcn.00452ae0
test al, al
je 0x4413ea
mov edx, dword [esi + 0x140]
add edx, dword [esi + 0x13c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
fild qword [esp + 0x18]
mov ecx, dword [0x7c67e0]
mov ecx, dword [ecx + 0xb4ec]
fdiv dword [esp + 0x5c]
push ecx
fstp dword [esp]
jmp 0x44145b
mov edx, dword [esi + 0x13c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
fild qword [esp + 0x18]
mov eax, dword [0x7c67e0]
mov ecx, dword [eax + 0xb4ec]
fdiv dword [esp + 0x5c]
push ecx
fstp dword [esp]
jmp 0x44145b
mov al, byte [esi + 0x19b]
test al, al
je 0x441460
push 5
mov ecx, esi
call fcn.00452ae0
test al, al
je 0x441460
mov edx, dword [esi + 0x140]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
fild qword [esp + 0x18]
mov eax, dword [0x7c67e0]
mov ecx, dword [eax + 0xb4ec]
fdiv dword [esp + 0x5c]
push ecx
fstp dword [esp]
jmp 0x44145b
mov eax, dword [0x7c67e0]
mov ecx, dword [eax + 0xb4ec]
push edi
call fcn.0051dab0
mov ecx, dword [esi + 0x1d4]
call fcn.0048e350
test byte [eax + 0x18], 2
je 0x44147e
mov ecx, eax
call fcn.004e28b0
fstp dword [esp + 0x5c]
jmp 0x441486
mov dword [esp + 0x5c], 0xc2c80000
lea ebx, [esi + 0x144]
mov ecx, ebx
call fcn.0047e710
mov ebp, eax
cmp ebp, edi
je 0x441547
mov eax, dword [esp + 0x5c]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x58]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0xc]
mov al, byte [edi + 0x34]
test al, al
je 0x4414fc
push ebp
mov ecx, ebx
call fcn.0047e610
mov ecx, dword [edi + 0x30]
mov edx, dword [ecx]
push 1
call dword [edx + 0x50]
push edi
lea ecx, [esi + 0x158]
call fcn.0047e360
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp eax, 1
jne 0x4414ea
dec dword [esi + 0x13c]
jmp 0x4414fc
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
cmp eax, 5
jne 0x4414fc
dec dword [esi + 0x140]
mov ecx, ebx
call fcn.0047e720
mov ebp, eax
test ebp, ebp
jne 0x44149d
mov ebp, dword [esp + 0x10]
mov byte [0x785fac], 1
jmp 0x441586
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
push 1
call dword [eax + 0x50]
mov esi, dword [esi + 0x60]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x50]
mov eax, dword [0x7c67e0]
cmp eax, edi
je 0x441547
mov eax, dword [eax + 0xb4ec]
cmp eax, edi
je 0x441547
push edi
mov ecx, eax
call fcn.0051dab0
mov ebp, dword [esp + 0x10]
mov byte [0x785fac], 1
jmp 0x441586
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
push 1
call dword [eax + 0x50]
mov esi, dword [esi + 0x60]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x50]
mov eax, dword [0x7c67e0]
test eax, eax
je 0x441586
mov eax, dword [eax + 0xb4ec]
test eax, eax
je 0x441586
push 0
mov ecx, eax
call fcn.0051dab0
test ebp, ebp
mov dword [esp + 0x4c], 0xffffffff
je 0x4415a0
dec dword [ebp + 4]
jne 0x4415a0
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 0x10