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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0xb00c], 0
je 0x41215c
mov esi, edi
call fcn.004117f0
push 0
push 0x18
push str.ray.kg
push edi
call fcn.00417210
test al, al
je 0x4124aa
push 0x78
call fcn.00411000
push eax
push 0xa
mov esi, edi
call fcn.00411bc0
mov dword [edi + 0xb0c8], 1
lea eax, [edi + 0x21d40]
xor ebx, ebx
cmp byte [eax], 0
je 0x4121b0
inc ebx
add eax, 0xbc
cmp ebx, 0x190
jl 0x412196
xor esi, esi
jmp 0x41226c
lea esi, [eax + 0xa4]
mov dword [ebp - 0x14], eax
mov byte [eax], 1
call fcn.0044e3a0
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [eax + 0xa0], esi
mov dword [eax + 0x9c], esi
mov dword [eax + 4], 1
cmp ebx, 0xffffffff
je 0x41226c
mov ecx, dword [0x4bdc98]
mov eax, dword [0x4bdc94]
mov edx, dword [0x4bdc9c]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x34]
push ecx
push esi
push esi
mov dword [ebp - 0x34], eax
mov eax, dword [0x4bdca0]
push 0x18
mov dword [ebp - 0x2c], edx
push 1
mov ecx, ebx
mov edx, edi
mov dword [ebp - 0x28], eax
call fcn.00420ee0
mov dword [edi + 0xb048], ebx
imul ebx, ebx, 0xbc
lea eax, [edi + 0x21d40]
add eax, ebx
je 0x41226c
mov ecx, 0x320
mov dword [eax + 0x28], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 8], 0x2c
mov dword [eax + 0x3c], 0x40
mov dword [eax + 0x40], 0x100
mov dword [eax + 0xa0], 1
mov dword [eax + 0x24], esi
mov dword [eax + 0x2c], esi
mov ecx, dword [edi + 0xb0cc]
mov dword [eax + 0xc], ecx
add ecx, 0x78
mov dword [eax + 0x10], ecx
mov edx, dword [0x4bdca4]
mov eax, dword [0x4bdca8]
mov ecx, dword [0x4bdcac]
mov dword [ebp - 0x34], edx
mov edx, dword [0x4bdcb0]
mov dword [ebp - 0x30], eax
lea eax, [edi + 0xb054]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 0x32
mov dword [ebp - 0xc], 0x78
mov dword [ebp - 8], 0x14
mov dword [ebp - 0x14], eax
jmp 0x4122b8
mov edi, dword [ebp + 8]
mov eax, 0x66666667
imul esi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx + 0xc]
mov dword [ebp - 0x18], edx
mov eax, 0x66666667
imul dword [ebp - 0x1c]
sar edx, 1
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 0xc]
lea ebx, [edi + 0x21d40]
mov dword [ebp - 0x24], ecx
xor edi, edi
jmp 0x4122f0
cmp byte [ebx], 0
je 0x41232c
inc edi
add ebx, 0xbc
cmp edi, 0x190
jl 0x4122f0
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x21d40]
xor edi, edi
nop
cmp byte [eax], 0
je 0x4123d4
inc edi
add eax, 0xbc
cmp edi, 0x190
jl 0x412310
jmp 0x41247f
lea esi, [ebx + 0xa4]
mov byte [ebx], 1
call fcn.0044e3a0
xor eax, eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0x9c], eax
mov dword [ebx + 4], 1
cmp edi, 0xffffffff
je 0x412304
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x34]
push edx
push eax
push eax
push 0x18
push 1
mov ecx, edi
mov edx, ebx
call fcn.00420ee0
mov eax, dword [ebp - 0x14]
mov dword [eax - 4], edi
imul edi, edi, 0xbc
lea eax, [ebx + 0x21d40]
add eax, edi
je 0x412307
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], 0xf
mov ecx, dword [ebx + 0xb0cc]
mov dword [eax + 0xc], ecx
add ecx, 0x78
mov dword [eax + 0x10], ecx
mov ecx, 0xf0
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x54], ecx
xor ecx, ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x3c], 0x50
mov dword [eax + 0x5c], 0xff
mov dword [eax + 0x18], ecx
mov dword [eax + 0x20], edx
jmp 0x412307
lea esi, [eax + 0xa4]
mov dword [ebp - 0x18], eax
mov byte [eax], 1
call fcn.0044e3a0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [eax + 0xa0], ecx
mov dword [eax + 0x9c], ecx
mov dword [eax + 4], 1
cmp edi, 0xffffffff
je 0x41247f
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 8]
push eax
push eax
push 0x18
push 1
mov ecx, edi
mov edx, ebx
call fcn.00420ee0
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
imul edi, edi, 0xbc
lea eax, [ebx + 0x21d40]
add eax, edi
je 0x41247f
mov edx, dword [ebp - 0xc]
mov ecx, 0xf0
mov dword [eax + 8], 0xf
mov ebx, dword [ebx + 0xb0cc]
mov dword [eax + 0x54], ecx
mov dword [eax + 0x5c], ecx
xor ecx, ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ebx
add ebx, 0x78
add edx, 0x18
add ecx, 0x18
mov dword [eax + 0x10], ebx
mov dword [eax + 0x3c], 0x64
mov dword [eax + 0x4c], 0xff
mov dword [eax + 0x18], edx
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x20]
add dword [ebp - 0xc], 0x78
add dword [ebp - 0x10], 0x32
add dword [ebp - 0x1c], 0x30
add dword [ebp - 0x14], 8
add eax, 0x14
add esi, 0x40
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esi
cmp eax, 0x78
jl 0x4122b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4