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

Disassembly:
sub esp, 0x28
mov ecx, dword [0xe962e4]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0xc], eax
jl 0x435052
mov edx, dword [esp + 0x30]
xor ecx, ecx
cmp edx, eax
push ebx
push ebp
mov ebx, 0x943ee0
setne cl
push esi
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov eax, dword [esp + 0x2c]
shr edx, 0x1f
cmp eax, edx
jne 0x435019
mov al, byte [ebx - 0x18]
lea esi, [ebx - 0x18]
cmp al, 0xff
je 0x435019
cmp byte [esi + 0x17], 2
jne 0x435019
movsx ecx, word [esi + 0x2bc]
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea eax, [eax + eax*2]
lea edi, [eax*4 + 0xecc6b8]
mov dword [esp + 0x24], edi
mov al, byte [edi + 8]
test al, al
je 0x435019
push esi
call fcn.0048c730
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
je 0x434c6d
push 3
jmp 0x434c6f
push 1
push esi
call fcn.00437040
mov eax, dword [edi + 0x38]
add esp, 8
xor esi, esi
test eax, eax
mov dword [esp + 0x14], esi
jle 0x435019
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [edi + 0xd8]
push esi
add ebx, ecx
push edi
mov dword [esp + 0x3c], ebx
call fcn.0047e9c0
add esp, 8
test eax, eax
jne 0x434ff7
mov eax, dword [ebx + 0x94]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x18], ebp
jle 0x434ff7
mov ecx, dword [esp + 0x20]
add ecx, esi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x3c]
lea eax, [ecx*8]
sub eax, ecx
lea esi, [eax + eax*2]
shl esi, 2
xor edi, edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x7f9990]
push ebp
push edx
add eax, 0xffffffe8
lea edx, [esi + ecx]
push eax
push edx
call fcn.00433f50
mov eax, dword [ebx + 0x78]
add esp, 0x10
mov al, byte [edi + eax]
test al, al
jle 0x434d32
movsx eax, al
push 0x17e
push str.D:descent3mainNewEditoreditor_object_lighting.cpp
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.004cb090
mov edx, dword [0x7f9990]
add esp, 0xc
mov dword [esi + edx + 0x34], eax
jmp 0x434d3f
mov eax, dword [0x7f9990]
mov dword [esi + eax + 0x34], 0
mov ecx, dword [0x7f9990]
xor eax, eax
xor edx, edx
mov al, byte [esi + ecx + 0x21]
mov dl, byte [esi + ecx + 0x20]
imul eax, edx
test eax, eax
jle 0x434d7d
lea eax, [eax + eax*2]
push 0x186
shl eax, 3
push str.D:descent3mainNewEditoreditor_object_lighting.cpp
push eax
call fcn.004cb090
mov ecx, dword [0x7f9990]
add esp, 0xc
mov dword [esi + ecx + 0x24], eax
jmp 0x434d85
mov dword [esi + ecx + 0x24], 0
mov edx, dword [0x7f9990]
mov byte [esi + edx + 0x45], 0
mov eax, dword [ebx + 0x78]
mov ax, word [edi + eax + 0x14]
cmp ax, 0xffff
jne 0x434dd1
mov ecx, dword [0x7f9990]
xor eax, eax
mov dword [esi + ecx + 4], eax
mov edx, dword [0x7f9990]
mov dword [esi + edx + 8], eax
mov ecx, dword [0x7f9990]
mov dword [esi + ecx + 0xc], eax
mov edx, dword [0x7f9990]
mov dword [esi + edx + 0x1c], 0x3f000000
jmp 0x434e91
movsx ecx, ax
mov eax, dword [esp + 0x24]
movsx edx, word [eax + ecx*2 + 0x90]
imul edx, edx, 0x88
mov ecx, dword [edx + 0x8e89bc]
mov edx, dword [0x7f9990]
mov dword [esi + edx + 4], ecx
mov ecx, dword [ebx + 0x78]
movsx edx, word [edi + ecx + 0x14]
movsx ecx, word [eax + edx*2 + 0x90]
imul ecx, ecx, 0x88
mov edx, dword [ecx + 0x8e89c0]
mov ecx, dword [0x7f9990]
mov dword [esi + ecx + 8], edx
mov edx, dword [ebx + 0x78]
movsx ecx, word [edi + edx + 0x14]
movsx edx, word [eax + ecx*2 + 0x90]
imul edx, edx, 0x88
mov ecx, dword [edx + 0x8e89c4]
mov edx, dword [0x7f9990]
mov dword [esi + edx + 0xc], ecx
mov ecx, dword [ebx + 0x78]
movsx edx, word [edi + ecx + 0x14]
movsx eax, word [eax + edx*2 + 0x90]
imul eax, eax, 0x88
mov edx, dword [0x7f9990]
mov ecx, dword [eax + 0x8e89d8]
mov dword [esi + edx + 0x1c], ecx
mov eax, dword [0x7f9990]
lea ecx, [esi + eax + 4]
push ecx
call fcn.00494c70
fcomp qword [0x51f360]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x434e91
mov eax, dword [0x7f9990]
or byte [esi + eax + 0x45], 2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x434ea6
mov edx, dword [0x7f9990]
mov byte [esi + edx + 0x38], 5
jmp 0x434eb0
mov eax, dword [0x7f9990]
mov byte [esi + eax + 0x38], 4
mov ecx, dword [esp + 0x30]
xor eax, eax
mov edx, dword [ecx*4 + 0x9440a4]
mov ecx, dword [0x8856c4]
mov ax, word [edi + edx + 2]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*8 + 0x10]
mov eax, dword [0x7f9990]
lea ecx, [esi + eax + 0x28]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov edx, dword [edx + 8]
mov eax, dword [esp + 0x10]
mov dword [ecx + 8], edx
mov edx, dword [0x7f9990]
mov ecx, dword [eax]
mov dword [esi + edx + 0x40], ecx
mov edx, dword [0x7f9990]
cmp byte [esi + edx + 0x38], 4
jne 0x434fb6
mov eax, dword [eax]
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*4]
shl eax, 4
test byte [eax + 0xfdba80], 0x20
je 0x434f30
mov cl, byte [esi + edx + 0x45]
lea eax, [esi + edx + 0x45]
or cl, 1
mov byte [eax], cl
mov edx, dword [0x7f9990]
mov ecx, dword [esp + 0x10]
xor ebp, ebp
mov eax, dword [ecx]
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*4]
shl eax, 4
mov ecx, dword [eax + 0xfdba88]
test ecx, ecx
jle 0x434fb2
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
lea ebx, [eax + eax*2]
lea eax, [eax + ebx*4]
shl eax, 4
mov ebx, dword [eax + 0xfdba94]
cmp word [ebx + ecx + 6], 0xffff
je 0x434f83
mov eax, ebx
movsx eax, word [eax + ecx + 6]
lea ebx, [eax + eax*2]
lea eax, [eax + ebx*4]
shl eax, 4
test byte [eax + 0xfdba80], 4
je 0x434f93
mov al, byte [esi + edx + 0x45]
or al, 1
mov byte [esi + edx + 0x45], al
mov edx, dword [0x7f9990]
mov eax, dword [esp + 0x10]
inc ebp
add ecx, 0x1c
mov eax, dword [eax]
lea ebx, [eax + eax*2]
lea eax, [eax + ebx*4]
shl eax, 4
cmp ebp, dword [eax + 0xfdba88]
jl 0x434f4d
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [esi + edx]
mov edx, dword [esp + 0x14]
push ecx
push ebp
push edx
push eax
call fcn.00435de0
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + 0x94]
add esp, 0x10
inc ebp
add edi, 0x24
inc edx
add esi, 0x54
cmp ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], edx
jl 0x434ce0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov eax, dword [edi + 0x38]
inc esi
add ebx, 0x164
cmp esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], ebx
jl 0x434c8f
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [0xe962e4]
inc eax
add esi, 0xca
add ebx, 0x328
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
jle 0x434c07
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
xor eax, eax
add esp, 0x28
ret