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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x204
mov eax, dword [0x6d63d0]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x208], eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x4ead08
lea ecx, [esp + 0xc0]
mov dword [esp + 0xc0], esi
call fcn.0060b1e0
mov al, byte [esp + 0x204]
xor edi, edi
test al, al
mov dword [esp + 0x30], edi
jne 0x4eacbc
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
je 0x4ead08
mov al, byte [esp + 0x204]
test al, al
je 0x4eaca1
mov ebx, 0x80
cmp byte [esp + 0xc4], 0x5b
jne 0x4ead3e
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*4 + 0x6bef44]
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4ead1d
inc esi
cmp esi, 9
jb 0x4eacd0
lea ecx, [esp + 0xc0]
mov dword [esp + 0x30], 0
call fcn.0060b1e0
jmp 0x4eacc1
xor al, al
mov ecx, dword [esp + 0x20c]
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
imul esi, esi, 0x70
add esi, 0x720708
lea ecx, [esp + 0xc0]
mov edi, esi
mov dword [esp + 0x30], 0
call fcn.0060b1e0
jmp 0x4eacc1
lea edx, [esp + 0xc4]
push str.light
push edx
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eaed0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], 0xff
mov byte [esp + 0x1a], 0xff
mov byte [esp + 0x1b], bl
call fcn.0060b1e0
test al, al
mov esi, dword [esp + 0x18]
je 0x4eae93
jmp 0x4ead90
mov al, byte [esp + 0x204]
test al, al
jne 0x4eae8f
lea eax, [esp + 0xc4]
push str.color
push eax
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eadd1
lea ecx, [esp + 0xc4]
push str.colour
push ecx
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eae3d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x114]
push str._i__i__i__i
push eax
mov dword [esp + 0x30], 0
call fcn.006720e1
add esp, 0x18
cmp eax, 3
jl 0x4eae3d
mov cl, byte [esp + 0xa4]
mov dl, byte [esp + 0xa8]
mov al, byte [esp + 0xb0]
mov byte [esp + 0x3c], cl
mov cl, byte [esp + 0x18]
mov byte [esp + 0x3d], dl
mov byte [esp + 0x3e], al
mov byte [esp + 0x3f], cl
mov esi, dword [esp + 0x3c]
lea edx, [esp + 0xc4]
push 0x690030
push edx
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eae7b
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x10c]
push str._f__f
push edx
call fcn.006720e1
add esp, 0x10
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
jne 0x4ead90
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x30]
cmp eax, 3
jge 0x4eacc1
fld dword [esp + 0x94]
mov dword [edi + eax*4 + 0x3c], esi
fmul dword [0x68b558]
inc eax
mov dword [esp + 0x30], eax
fstp dword [edi + eax*8 - 8]
fld dword [esp + 0x98]
fmul dword [0x68b558]
fstp dword [edi + eax*8 - 4]
jmp 0x4eacc1
lea eax, [esp + 0xc4]
push str.ambient
push eax
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eafdd
lea ecx, [esp + 0xc0]
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xff
mov byte [esp + 0x16], 0xff
mov byte [esp + 0x17], bl
call fcn.0060b1e0
test al, al
mov esi, dword [esp + 0x14]
je 0x4eafd5
jmp 0x4eaf20
mov al, byte [esp + 0x204]
test al, al
jne 0x4eafd1
lea ecx, [esp + 0xc4]
push str.color
push ecx
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eaf61
lea edx, [esp + 0xc4]
push str.colour
push edx
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eafbd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x114]
push str._i__i__i__i
push ecx
mov dword [esp + 0x2c], ebx
call fcn.006720e1
add esp, 0x18
cmp eax, 3
jl 0x4eafbd
mov dl, byte [esp + 0x64]
mov al, byte [esp + 0xa0]
mov cl, byte [esp + 0x6c]
mov byte [esp + 0x2c], dl
mov dl, byte [esp + 0x14]
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], dl
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
jne 0x4eaf20
mov dword [esp + 0x14], esi
mov dword [edi + 0x48], esi
jmp 0x4eacc1
lea eax, [esp + 0xc4]
push 0x69001c
push eax
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eb245
lea ecx, [esp + 0xc0]
mov byte [esp + 0x10], 0xff
mov byte [esp + 0x11], 0xff
mov byte [esp + 0x12], 0xff
mov byte [esp + 0x13], bl
mov dword [esp + 0x48], 0x3f400000
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x50], 0x42960000
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], 0x44bb8000
mov dword [esp + 0x44], 0x42c80000
call fcn.0060b1e0
test al, al
mov esi, dword [esp + 0x10]
je 0x4eb1fb
mov al, byte [esp + 0x204]
test al, al
jne 0x4eb1f7
lea ecx, [esp + 0xc4]
push str.color
push ecx
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eb187
lea edx, [esp + 0xc4]
push str.colour
push edx
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eb187
lea eax, [esp + 0xc4]
push str.smogcolor
push eax
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eb14f
lea ecx, [esp + 0xc4]
push str.smogcolour
push ecx
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eb14f
lea edx, [esp + 0xc4]
push 0x690000
push edx
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eb10d
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x48]
push eax
push ecx
lea edx, [esp + 0x10c]
push str._f__f
push edx
call fcn.006720e1
add esp, 0x10
jmp 0x4eb1e3
push str.near
lea ecx, [esp + 0xc4]
call fcn.004ea8e0
test al, al
je 0x4eb12c
lea eax, [esp + 0x54]
lea ecx, [esp + 0x50]
jmp 0x4eb0f1
push 0x68fff4
lea ecx, [esp + 0xc4]
call fcn.004ea8e0
test al, al
je 0x4eb1e3
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
jmp 0x4eb0f1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x114]
push str._i__i__i__i
push ecx
mov dword [esp + 0x24], ebx
call fcn.006720e1
add esp, 0x18
jmp 0x4eb1e3
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x114]
push str._i__i__i__i
push eax
mov dword [esp + 0x28], ebx
call fcn.006720e1
add esp, 0x18
cmp eax, 3
jl 0x4eb1e3
mov cl, byte [esp + 0x58]
mov dl, byte [esp + 0x74]
mov al, byte [esp + 0x9c]
mov byte [esp + 0x20], cl
mov cl, byte [esp + 0x10]
mov byte [esp + 0x21], dl
mov byte [esp + 0x22], al
mov byte [esp + 0x23], cl
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
jne 0x4eb051
mov dword [esp + 0x10], esi
fld dword [esp + 0x50]
mov edx, dword [esp + 0x48]
fmul dword [0x68b7fc]
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x60], esi
mov dword [edi + 0x28], edx
fstp dword [edi + 0x18]
fld dword [esp + 0x54]
mov dword [edi + 0x2c], eax
fmul dword [0x68b7fc]
fstp dword [edi + 0x1c]
fld dword [esp + 0x40]
fmul dword [0x68b7fc]
fstp dword [edi + 0x20]
fld dword [esp + 0x44]
fmul dword [0x68b7fc]
fstp dword [edi + 0x24]
jmp 0x4eacc1
lea ecx, [esp + 0xc4]
push 0x68fff0
push ecx
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eb344
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
je 0x4eacc1
lea esi, [edi + 0x4c]
lea esp, [esp]
mov al, byte [esp + 0x204]
test al, al
jne 0x4eacc1
lea edx, [esp + 0xc4]
push str.color
push edx
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eb2c1
lea eax, [esp + 0xc4]
push str.colour
push eax
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eb32b
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x114]
push str._i__i__i__i
push edx
mov dword [esp + 0x24], ebx
call fcn.006720e1
add esp, 0x18
cmp eax, 3
jl 0x4eb32b
mov al, byte [esp + 0x7c]
mov cl, byte [esp + 0xac]
mov dl, byte [esp + 0x84]
mov byte [esp + 0x34], al
mov al, byte [esp + 0xc]
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], dl
mov byte [esp + 0x37], al
mov ecx, dword [esp + 0x34]
mov dword [esi], ecx
add esi, 4
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
jne 0x4eb280
jmp 0x4eacc1
lea edx, [esp + 0xc4]
push str.dynamic_shadow
push edx
call fcn.00674a61
add esp, 8
test eax, eax
lea ecx, [esp + 0xc0]
jne 0x4eb43f
call fcn.0060b1e0
test al, al
je 0x4eacc1
jmp 0x4eb380
mov al, byte [esp + 0x204]
test al, al
jne 0x4eacc1
lea eax, [esp + 0xc4]
push str.color
push eax
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eb3c1
lea ecx, [esp + 0xc4]
push str.colour
push ecx
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eb426
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x114]
push str._i__i__i__i
push eax
mov dword [esp + 0x24], ebx
call fcn.006720e1
add esp, 0x18
cmp eax, 3
jl 0x4eb426
mov cl, byte [esp + 0x90]
mov dl, byte [esp + 0x8c]
mov al, byte [esp + 0x5c]
mov byte [esp + 0x38], cl
mov cl, byte [esp + 0xc]
mov byte [esp + 0x39], dl
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], cl
mov edx, dword [esp + 0x38]
mov dword [edi + 0x64], edx
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
jne 0x4eb380
jmp 0x4eacc1
push str.static_shadow
call fcn.004ea8e0
test al, al
lea ecx, [esp + 0xc0]
je 0x4eb523
call fcn.0060b1e0
test al, al
je 0x4eacc1
jmp 0x4eb470
mov al, byte [esp + 0x204]
test al, al
jne 0x4eacc1
lea eax, [esp + 0xc4]
push str.color
push eax
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eb4b1
lea ecx, [esp + 0xc4]
push str.colour
push ecx
call fcn.00674a61
add esp, 8
test eax, eax
jne 0x4eb50a
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x114]
push str._i__i__i__i
push eax
mov dword [esp + 0x24], ebx
call fcn.006720e1
add esp, 0x18
cmp eax, 3
jl 0x4eb50a
mov cl, byte [esp + 0x60]
mov dl, byte [esp + 0x68]
mov al, byte [esp + 0x70]
mov byte [esp + 0x24], cl
mov cl, byte [esp + 0xc]
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], al
mov byte [esp + 0x27], cl
mov edx, dword [esp + 0x24]
mov dword [edi + 0x68], edx
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
jne 0x4eb470
jmp 0x4eacc1
push str.splash
call fcn.004ea8e0
test al, al
lea ecx, [esp + 0xc0]
je 0x4eb60e
call fcn.0060b1e0
test al, al
je 0x4eacc1
lea esp, [esp]
mov al, byte [esp + 0x204]
test al, al
jne 0x4eacc1
lea eax, [esp + 0xc4]
push str.color
push eax
call fcn.00674a61
add esp, 8
test eax, eax
je 0x4eb58d
push str.colour
lea ecx, [esp + 0xc4]
call fcn.004ea8e0
test al, al
je 0x4eb5f5
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x114]
push str._i__i__i__i
push edx
mov dword [esp + 0x24], ebx
call fcn.006720e1
add esp, 0x18
cmp eax, 3
jl 0x4eb5f5
mov al, byte [esp + 0x78]
mov cl, byte [esp + 0x80]
mov dl, byte [esp + 0x88]
mov byte [esp + 0x28], al
mov al, byte [esp + 0xc]
mov byte [esp + 0x29], cl
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2b], al
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x6c], ecx
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
jne 0x4eb550
jmp 0x4eacc1
push str.reflection
call fcn.004ea8e0
test al, al
je 0x4eb71a
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
je 0x4eacc1
jmp 0x4eb640
mov al, byte [esp + 0x204]
test al, al
jne 0x4eacc1
push str.scalew
lea ecx, [esp + 0xc4]
call fcn.004ea8e0
test al, al
je 0x4eb68b
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x108]
push 0x68ffb0
push eax
call fcn.006720e1
add esp, 0xc
test eax, eax
je 0x4eb68b
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x30], ecx
jmp 0x4eb701
push str.scaleh
lea ecx, [esp + 0xc4]
call fcn.004ea8e0
test al, al
je 0x4eb6c7
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x108]
push 0x68ffb0
push eax
call fcn.006720e1
add esp, 0xc
test eax, eax
je 0x4eb6c7
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x34], ecx
jmp 0x4eb701
push 0x68ffa0
lea ecx, [esp + 0xc4]
call fcn.004ea8e0
test al, al
je 0x4eb701
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x108]
push 0x68ffb0
push eax
call fcn.006720e1
add esp, 0xc
test eax, eax
je 0x4eb701
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x38], ecx
lea ecx, [esp + 0xc0]
call fcn.0060b1e0
test al, al
jne 0x4eb640
jmp 0x4eacc1
mov ecx, dword [esp + 0x20c]
mov al, 1
call fcn.00671b23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret