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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x59c6b8]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x84]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x9c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
or edx, 0x2000
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004a6240
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a41c
jmp 0x50af92
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 8]
mov byte [eax + 0x88], dl
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x88]
test ecx, ecx
je 0x50a4b6
mov edx, dword [ebp - 0xc]
add edx, 0xc
mov eax, dword [ebp + 8]
add eax, 0x8c
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov dword [eax + 0x9c], ecx
mov dword [eax + 0xa0], edx
mov ecx, dword [ebp + 8]
add ecx, 0x8c
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004a4e00
add esp, 4
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
add eax, 0x9c
push eax
call fcn.004ac060
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x48]
mov dword [ebp - 0xec], edx
cmp dword [ebp - 0xec], 0x636f6d70
je 0x50a903
cmp dword [ebp - 0xec], 0x6f75746c
je 0x50a4e3
jmp 0x50acaa
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x88]
test ecx, ecx
je 0x50a514
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x9c]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x6c
push eax
call fcn.004abd60
add esp, 0xc
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 0x6e]
add edx, 4
je 0x50a543
mov eax, dword [ebp - 0x1c]
movsx ecx, word [eax + 0x16]
mov edx, dword [ebp - 0x1c]
movsx eax, word [edx + 0x3a]
add ecx, eax
mov edx, dword [ebp - 0x18]
movsx eax, word [edx + 0x6e]
lea ecx, [ecx + eax + 4]
mov edx, dword [ebp - 0x1c]
cmp ecx, dword [edx + 4]
ja 0x50a57b
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0x6c]
test ecx, ecx
je 0x50a56f
mov edx, dword [ebp - 0x1c]
movsx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x1c]
movsx edx, word [ecx + 0x38]
add eax, edx
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 0x6c]
add eax, edx
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx + 8]
ja 0x50a57b
mov dword [ebp - 0xf0], 0
jmp 0x50a5a0
mov edx, dword [ebp - 0x18]
movsx eax, word [edx + 0x6c]
push eax
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 0x6e]
add edx, 4
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004a5560
add esp, 0xc
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x50a5b4
jmp 0x50af92
mov edx, dword [ebp - 0x18]
movsx eax, word [edx + 0x6e]
shl eax, 3
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x70]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.00511be0
add esp, 0xc
mov edx, dword [ebp - 0x18]
movsx eax, word [edx + 0x6c]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x78]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.00511be0
add esp, 0xc
mov edx, dword [ebp - 0x18]
movsx eax, word [edx + 0x6e]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x74]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x40]
push ecx
call fcn.00511be0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov cx, word [eax + 0x6e]
mov word [edx + 0x3a], cx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov cx, word [eax + 0x6c]
mov word [edx + 0x38], cx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
mov dword [edx + 0xa4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0xa8], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x28]
push edx
call fcn.005021c0
add esp, 8
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 8]
mov edx, dword [ebp + 8]
mov dword [edx + 0xac], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0xb0], edx
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0x6e]
test ecx, ecx
jne 0x50a691
jmp 0x50acb1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
mov eax, dword [edx*4 + 0x5639e0]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x18], 0
je 0x50a6cc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x18]
call eax
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 1
je 0x50a87e
mov edx, dword [ebp - 0x20]
add edx, 0x2c
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0xc]
imul eax, eax, 0x30
mov ecx, dword [ebp - 0x58]
lea edx, [ecx + eax - 0x30]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0xc], 1
jle 0x50a816
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x64]
and edx, 4
jne 0x50a816
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax + 0xac]
sub edx, dword [ecx + 4]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 8]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x50]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 8]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x50], 0x18
jge 0x50a762
mov ecx, dword [ebp - 0x48]
sub ecx, 8
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x5c], 0x18
jge 0x50a771
mov edx, dword [ebp - 0x40]
add edx, 8
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x48]
add eax, 0x20
and eax, 0xffffffc0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa4], eax
mov edx, dword [ebp - 0x40]
add edx, 0x20
and edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax + 0xac], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
cmp edx, dword [ebp - 0x4c]
jl 0x50a7be
cmp dword [ebp - 0x50], 0
jle 0x50a7be
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa4]
sub ecx, 0x40
mov edx, dword [ebp + 8]
mov dword [edx + 0xa4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax + 0xac]
cmp edx, dword [ecx + 8]
jg 0x50a7ea
cmp dword [ebp - 0x5c], 0
jle 0x50a7ea
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
add ecx, 0x40
mov edx, dword [ebp + 8]
mov dword [edx + 0xac], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa4]
sub ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x90], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
sub ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x94], ecx
jmp 0x50a87c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa4]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xac]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x64]
add ecx, 0x20
and ecx, 0xffffffc0
mov edx, dword [ebp + 8]
mov dword [edx + 0xa4], ecx
mov eax, dword [ebp - 0x60]
add eax, 0x20
and eax, 0xffffffc0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xac], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa4]
sub eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x90], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xac]
sub eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x94], eax
jmp 0x50a8f2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xac]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x70]
mov edx, dword [ebp - 0x6c]
lea eax, [edx + ecx + 0x20]
and eax, 0xffffffc0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa4], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp - 0x68]
lea edx, [ecx + eax + 0x20]
and edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax + 0xac], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x90], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xac]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x94], edx
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004a58b0
add esp, 4
jmp 0x50acb1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x1c]
movsx edx, word [ecx + 0x16]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004a5770
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a937
jmp 0x50af92
mov edx, dword [ebp - 0x80]
shl edx, 5
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x84]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x58]
push eax
call fcn.00511be0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x80]
mov dword [ecx + 0x54], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x78], 0
jmp 0x50a97b
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x80]
jae 0x50aca8
mov ecx, dword [ebp - 0x70]
shl ecx, 5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x34]
add eax, ecx
mov ecx, dword [ebp - 0x78]
shl ecx, 5
add eax, ecx
mov dword [ebp - 0x74], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa4]
mov ecx, dword [edx + 0xa8]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xac]
mov ecx, dword [edx + 0xb0]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x1c]
movsx eax, word [edx + 0x16]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp + 0x18]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0050a3a0
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50aa12
jmp 0x50af92
mov ecx, dword [ebp - 0x70]
shl ecx, 5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x34]
add eax, ecx
mov ecx, dword [ebp - 0x78]
shl ecx, 5
add eax, ecx
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
movzx eax, word [edx + 4]
and eax, 0x200
jne 0x50aa6f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xa4]
mov dword [ecx + 0xa4], edx
mov eax, dword [ebp - 0xa0]
mov dword [ecx + 0xa8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x94]
mov dword [ecx + 0xac], edx
mov eax, dword [ebp - 0x90]
mov dword [ecx + 0xb0], eax
mov ecx, dword [ebp - 0x1c]
movsx edx, word [ecx + 0x16]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x74]
movzx edx, word [ecx + 4]
and edx, 0xc8
je 0x50aafe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x98]
lea eax, [ecx + edx*8]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa8]
lea eax, [edx + ecx*8]
mov dword [ebp - 0xac], eax
jmp 0x50aad8
mov ecx, dword [ebp - 0xa8]
add ecx, 8
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
cmp edx, dword [ebp - 0xac]
jae 0x50aafe
mov eax, dword [ebp - 0x74]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call fcn.004ac060
add esp, 8
jmp 0x50aac9
mov edx, dword [ebp - 0x74]
movzx eax, word [edx + 4]
and eax, 2
jne 0x50abc9
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0x7c]
add edx, dword [ebp - 0xb8]
cmp edx, dword [ebp - 0x98]
jae 0x50ab45
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0x9c]
jb 0x50ab51
mov dword [ebp - 8], 0x15
jmp 0x50af92
mov ecx, dword [ebp - 0xbc]
add ecx, dword [ebp - 0x98]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x7c]
lea edx, [eax + ecx*8]
mov eax, dword [ebp - 0xb8]
lea ecx, [edx + eax*8]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x7c]
lea edx, [eax + ecx*8]
mov eax, dword [ebp - 0xbc]
lea ecx, [edx + eax*8]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [edx]
sub ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [edx + 4]
sub ecx, dword [eax + 4]
mov dword [ebp - 0x88], ecx
jmp 0x50ac31
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 8]
push edx
call fcn.005021c0
add esp, 8
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 8]
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0xc]
push edx
call fcn.005021c0
add esp, 8
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x8c]
add edx, 0x20
and edx, 0xffffffc0
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x88]
add eax, 0x20
and eax, 0xffffffc0
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
mov edx, dword [ecx]
mov dword [ebp - 0xd0], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0xcc], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc8], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xcc]
lea ecx, [eax + edx*8]
mov dword [ebp - 0xcc], ecx
mov dx, word [ebp - 0x9c]
mov word [ebp - 0xce], dx
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xd0]
push edx
call fcn.004abd60
add esp, 0xc
jmp 0x50a972
jmp 0x50acb1
mov dword [ebp - 8], 7
cmp dword [ebp + 0x18], 0
jne 0x50af92
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x2c]
sub edx, dword [ecx + 0x20]
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x30]
sub edx, dword [ecx + 0x24]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0xd8]
push edx
call fcn.005021c0
add esp, 8
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call fcn.005021c0
add esp, 8
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x88]
test ecx, ecx
je 0x50ad57
mov edx, dword [ebp + 8]
add edx, 0x8c
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x14
push eax
call fcn.004ac0f0
add esp, 8
mov ecx, dword [ebp + 8]
add ecx, 0x8c
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.004ac060
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa4], 0
je 0x50ad80
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
neg edx
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x14
push eax
call fcn.004abd60
add esp, 0xc
lea ecx, [ebp - 0xe8]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x14
push edx
call fcn.004abc50
add esp, 8
mov eax, dword [ebp - 0xe8]
and eax, 0xffffffc0
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe4]
and ecx, 0xffffffc0
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe0]
add edx, 0x3f
and edx, 0xffffffc0
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xdc]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xe0]
sub ecx, dword [ebp - 0xe8]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0xdc]
sub eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xe8]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xdc]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0xe8]
add eax, dword [ebp - 0xd8]
and eax, 0xffffffc0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0xdc]
add edx, dword [ebp - 0xd4]
and edx, 0xffffffc0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 1
je 0x50aeb2
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 8]
and ecx, 4
jne 0x50ae7a
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.0050afb0
add esp, 8
movzx edx, al
test edx, edx
je 0x50aeb2
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x50aeb2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x28]
push edx
call fcn.005021c0
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x90], 0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x94], 0
jmp 0x50aed3
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x28], 0
je 0x50aed3
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0xac]
sub ecx, dword [eax + 0xa4]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x34]
push eax
call fcn.005021c0
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x28]
add eax, 0x20
and eax, 0xffffffc0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x34]
add eax, 0x20
and eax, 0xffffffc0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call fcn.004a52d0
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call fcn.004a5970
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50af3e
jmp 0x50af92
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov cx, word [edx + 0x14]
mov word [eax + 0x6c], cx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + 0x16]
mov word [ecx + 0x6e], dx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x70], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x74], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x20]
mov dword [ecx + 0x78], edx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x48], 0x6f75746c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00511afd
mov esp, ebp
pop ebp
ret