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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x101e3070]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
mov ecx, dword [ebp + 8]
push edi
mov dword [esp + 8], ecx
mov edi, dword [esi + 8]
mov eax, dword [esi]
mov dword [esp + 0x34], edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], eax
test edi, edi
je 0x10051068
mov eax, 0x65
test edx, edx
je 0x1005056a
movzx eax, byte [edx]
mov dword [esp + 0x18], eax
add eax, 0xffffffed
cmp eax, 0x8a
ja case.0x10050583.21
movzx eax, byte [eax + 0x10051438]
jmp dword [eax*4 + 0x100513d4]
movsx eax, word [edx + 0x22]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x28]
mov eax, dword [eax + 0x1c]
lea ecx, [eax + ecx*8]
mov eax, dword [edx + 0x28]
cmp byte [eax], 0
jne 0x100505bb
mov edi, dword [ecx + 0x10]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
cmp byte [eax + 1], 0
je 0x100505df
mov edx, dword [ebp + 8]
push edx
push dword [ecx + 0xc]
mov edx, 0x30
mov ecx, edi
push dword [eax + 8]
call fcn.10038e20
add esp, 0xc
jmp 0x100513ba
mov ecx, dword [ebp + 8]
mov edi, dword [edx + 0x1c]
test edi, edi
jns 0x1005060f
mov eax, dword [esi + 0x60]
test eax, eax
jle 0x1005060c
movsx edi, word [edx + 0x20]
add edi, eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x64]
movzx eax, byte [edx + 0x26]
push eax
movsx eax, word [edx + 0x20]
mov edx, dword [edx + 0x2c]
push ecx
push edi
push eax
mov ecx, esi
call fcn.100501d0
add esp, 0x10
mov edi, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
push ecx
push 0
mov ecx, esi
call fcn.1004fcf0
add esp, 8
jmp 0x100513ba
mov edx, dword [edx + 8]
push ecx
push 0
mov ecx, edi
call fcn.1004fc40
add esp, 8
jmp 0x100513ba
push dword [edx + 8]
mov edx, ecx
mov ecx, edi
call fcn.10039050
add esp, 4
jmp 0x100513ba
push ecx
push 0
mov edx, 0x1a
mov ecx, edi
call fcn.10038f70
add esp, 8
jmp 0x100513ba
mov esi, dword [edx + 8]
lea ecx, [esi + 2]
call fcn.1001e7f0
lea edx, [esi + 2]
mov esi, dword [esp + 0x34]
lea edi, [eax - 1]
mov ecx, dword [esi]
push edi
call fcn.1001fae0
mov edx, dword [ebp + 8]
add esp, 4
mov ecx, esi
push 0xffffffffffffffff
push eax
push 0
push edx
mov eax, edi
cdq
sub eax, edx
mov edx, 0x1c
sar eax, 1
push eax
call fcn.10039210
add esp, 0x14
jmp 0x100513ba
movsx eax, word [edx + 0x20]
mov edx, 0x1d
push ecx
push eax
mov ecx, edi
call fcn.10038f70
mov ecx, dword [esp + 0x34]
add esp, 8
mov eax, dword [ecx + 8]
cmp byte [eax + 1], 0
je 0x100513ba
movsx ecx, word [ecx + 0x20]
mov eax, dword [esi + 0x1d8]
mov edx, dword [eax + ecx*4 - 4]
mov ecx, dword [edi]
cmp byte [ecx + 0x41], 0
je 0x10050724
push edx
mov edx, 0xfffffffe
call fcn.100397d0
add esp, 4
jmp 0x100513ba
mov eax, dword [edi + 0x20]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x1005074c
push 0xfffffffffffffffe
push edx
mov edx, eax
mov ecx, edi
call fcn.100399e0
add esp, 8
jmp 0x100513ba
mov edi, dword [esp + 8]
test edx, edx
je 0x100513be
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfe
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
mov edi, dword [edx + 0x1c]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xc]
push ecx
mov ecx, esi
call fcn.10050510
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 8], ecx
cmp ecx, eax
je 0x100507c1
push eax
push ecx
mov edx, 0x20
mov ecx, edi
call fcn.10038f70
mov edx, dword [ebp + 8]
add esp, 8
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov ecx, dword [ecx + 8]
call fcn.100582d0
movsx eax, al
mov edx, 0x29
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.10038f70
mov edi, dword [esp + 0x10]
mov ecx, esi
push 1
mov edx, edi
call fcn.1004ff70
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.10051530
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov edx, dword [ecx + 0x10]
mov ecx, esi
push eax
call fcn.10051530
mov edx, dword [ebp + 8]
add esp, 4
push 0x20
push edx
push eax
push edi
push dword [esp + 0x28]
mov eax, dword [esp + 0x40]
mov ecx, esi
push dword [eax + 0x10]
mov edx, dword [eax + 0xc]
call fcn.1004cb40
add esp, 0x18
jmp 0x10050f48
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.10051530
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov edx, dword [ecx + 0x10]
mov ecx, esi
push eax
call fcn.10051530
mov edx, dword [ebp + 8]
add esp, 4
push 0xa0
push edx
push eax
xor eax, eax
cmp dword [esp + 0x24], 0x49
push edi
sete al
add eax, 0x4e
push eax
jmp 0x10050840
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.10051530
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov edx, dword [ecx + 0x10]
mov ecx, esi
push eax
call fcn.10051530
mov edx, dword [ebp + 8]
add esp, 4
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push edi
push eax
call fcn.10038e20
add esp, 0xc
jmp 0x10050f48
mov edx, dword [edx + 0xc]
mov al, byte [edx]
cmp al, 0x84
jne 0x10050905
push ecx
push 1
mov ecx, esi
call fcn.1004fcf0
mov eax, dword [ebp + 8]
add esp, 8
mov dword [esp + 8], eax
jmp 0x10050f48
cmp al, 0x85
jne 0x10050925
mov edx, dword [edx + 8]
push ecx
push 1
mov ecx, edi
call fcn.1004fc40
mov eax, dword [ebp + 8]
add esp, 8
mov dword [esp + 8], eax
jmp 0x10050f48
lea eax, [esp + 0xc]
mov byte [esp + 0x70], 0x84
push eax
lea edx, [esp + 0x74]
mov dword [esp + 0x78], 0x4400
mov ecx, esi
mov dword [esp + 0x7c], 0
call fcn.10051530
mov ecx, dword [esp + 0x30]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov ecx, esi
push eax
call fcn.10051530
mov edx, dword [ebp + 8]
add esp, 4
mov ecx, dword [esp + 0x34]
push edx
push edi
push eax
mov edx, 0x5a
call fcn.10038e20
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x10050f48
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.10051530
mov ecx, dword [ebp + 8]
add esp, 4
mov edx, dword [esp + 0x18]
mov dword [esp + 8], ecx
push ecx
push eax
mov ecx, edi
call fcn.10038f70
add esp, 8
jmp 0x10050f48
push ecx
push 1
mov edx, 0x17
mov ecx, edi
call fcn.10038f70
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
mov edx, dword [ecx + 0xc]
mov ecx, esi
call fcn.10051530
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, edi
push eax
call fcn.10038f00
mov ecx, dword [esp + 0x38]
add esp, 4
mov edx, 0x17
mov edi, eax
push dword [ebp + 8]
push 0
call fcn.10038f70
mov ecx, dword [esp + 0x3c]
add esp, 8
mov edx, edi
call fcn.10039740
jmp 0x10050f48
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x10050a2f
push dword [edx + 8]
push str.misuse_of_aggregate:__s__
push esi
call fcn.1001e910
add esp, 0xc
jmp 0x100513ba
movsx ecx, word [edx + 0x22]
mov eax, dword [eax + 0x28]
add ecx, ecx
mov edi, dword [eax + ecx*8 + 8]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
test dword [edx + 4], 0x4000
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov al, byte [eax + 0x3e]
mov byte [esp + 0x38], al
je 0x10050b76
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov eax, dword [edx + 8]
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.1001e7f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push 0
push dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
push dword [esp + 0x14]
push eax
call fcn.1005d530
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x10050dbd
cmp dword [eax + 0x10], 0
jne 0x10050dbd
movzx eax, word [eax + 2]
test eax, 0x200
je 0x10050b90
mov ecx, edi
call fcn.10039420
mov edx, dword [esp + 0x14]
mov ecx, esi
push dword [ebp + 8]
mov dword [esp + 0x20], eax
mov edx, dword [edx + 4]
mov edx, dword [edx]
call fcn.100516c0
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 1
jle 0x10050b66
dec eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x20], eax
push dword [esp + 0x1c]
mov edx, 0x4d
mov ecx, edi
push dword [ebp + 8]
call fcn.10038f70
mov edx, dword [ebp + 8]
mov ecx, esi
push 1
call fcn.1004ff70
mov eax, dword [esp + 0x20]
add esp, 0xc
inc dword [esi + 0x68]
mov ecx, esi
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
push dword [ebp + 8]
mov edx, dword [eax + edx]
call fcn.100516c0
add esp, 4
mov ecx, esi
call fcn.1004ffd0
add dword [esp + 0x10], 0x18
sub dword [esp + 0x20], 1
jne 0x10050b13
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.10039470
jmp 0x100513ba
mov eax, dword [edx + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10050a82
mov eax, dword [eax]
mov dword [esp + 0xc], eax
jmp 0x10050a8a
test eax, 0x400
je 0x10050bc3
mov eax, dword [esp + 0x14]
mov ecx, esi
push dword [ebp + 8]
mov edx, dword [eax + 4]
mov edx, dword [edx]
call fcn.10050510
add esp, 4
mov edi, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x10050c55
mov edi, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x24], edx
nop
cmp eax, 0x20
jge 0x10050c0b
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + edx]
call fcn.1004e680
mov edx, dword [esp + 0x24]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x10050c07
mov ecx, dword [esp + 0x1c]
bts ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
test byte [edi + 2], 0x20
mov edi, dword [esp + 0x14]
je 0x10050c41
cmp dword [esp + 0x20], 0
jne 0x10050c41
mov edx, dword [edi + 4]
mov ecx, esi
mov eax, dword [esp + 0x24]
mov edx, dword [edx + eax]
call fcn.1004c8a0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
inc eax
add edx, 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
cmp eax, ecx
jl 0x10050be0
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10050cd7
cmp dword [esp + 0x1c], 0
je 0x10050c79
mov eax, dword [esi + 0x48]
lea edi, [eax + 1]
add eax, ecx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x34]
mov dword [esi + 0x48], eax
jmp 0x10050c8a
mov edx, ecx
mov ecx, esi
call fcn.10052c90
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
test byte [eax + 2], 0xc0
je 0x10050cb5
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x38], ecx
mov cl, byte [ecx]
cmp cl, 0x98
je 0x10050ca9
cmp cl, 0x9a
jne 0x10050cb5
mov al, byte [eax + 2]
mov ecx, dword [esp + 0x38]
and al, 0xc0
mov byte [ecx + 0x26], al
inc dword [esi + 0x68]
mov ecx, esi
push 3
push 0
push dword [esp + 0x2c]
call fcn.100518d0
add esp, 0xc
mov ecx, esi
call fcn.1004ffd0
mov edx, dword [esp + 0x14]
jmp 0x10050cdf
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0xc]
cmp eax, 2
jl 0x10050d12
mov ecx, dword [esp + 0x2c]
test byte [ecx + 4], 0x80
je 0x10050d12
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push dword [eax + 0x18]
push dword [esp + 0x10]
call fcn.1007d090
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x10050d39
test eax, eax
jle 0x10050d35
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push dword [eax]
push dword [esp + 0x10]
call fcn.1007d090
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x10050d39
mov eax, dword [esp + 0x18]
test byte [eax + 2], 0x20
je 0x10050d6a
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10050d4e
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
push 0xfffffffffffffffc
push eax
push 0
push 0
push 0
mov edx, 0x23
mov ecx, edi
call fcn.10039210
mov eax, dword [esp + 0x2c]
add esp, 0x14
push 0xfffffffffffffffb
push eax
push dword [ebp + 8]
mov edx, 0x24
mov ecx, edi
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.10039210
mov dl, byte [esp + 0x20]
add esp, 0x14
mov ecx, edi
call fcn.10039720
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100513ba
cmp dword [esp + 0x1c], 0
jne 0x100513ba
mov edx, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.10052cc0
add esp, 4
jmp 0x100513ba
push dword [esp + 0x10]
push dword [esp + 0x28]
push str.unknown_function:__.s__
push esi
call fcn.1001e910
add esp, 0x10
jmp 0x100513ba
push 0
push 0
mov ecx, esi
call fcn.1004f090
add esp, 8
mov edi, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10039420
mov ecx, dword [esp + 0x34]
mov edi, eax
call fcn.10039420
push dword [ebp + 8]
mov ecx, dword [esp + 0x38]
mov edx, 0x1a
push 0
mov dword [esp + 0x28], eax
call fcn.10038f70
push dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ecx, esi
push edi
call fcn.1004f660
push dword [ebp + 8]
mov esi, dword [esp + 0x48]
mov edx, 0x17
push 1
mov ecx, esi
call fcn.10038f70
mov edx, edi
mov ecx, esi
call fcn.10039470
push 0
push dword [ebp + 8]
mov edx, 0x26
call fcn.10038f70
mov edx, dword [esp + 0x40]
add esp, 0x20
mov ecx, esi
call fcn.10039470
jmp 0x100513ba
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0xc]
mov edx, ecx
mov dword [esp + 0x1c], ecx
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
mov edi, dword [eax]
lea eax, [esp + 0xc]
push eax
call fcn.10051530
add esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
mov edx, edi
mov ecx, esi
push eax
call fcn.10051530
add esp, 4
mov ecx, esi
mov edx, eax
call fcn.10052c30
mov dword [esp + 0x30], eax
call fcn.10052c30
push 0x20
push dword [esp + 0x34]
mov dword [esp + 0x28], eax
push edx
push dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push 0x53
push edi
call fcn.1004cb40
mov edi, dword [esp + 0x50]
mov ecx, esi
mov edx, dword [esp + 0x2c]
mov edi, dword [edi + 0x18]
call fcn.10052c50
lea eax, [esp + 0x2c]
mov edx, edi
push eax
mov ecx, esi
call fcn.10051530
mov edx, dword [esp + 0x38]
add esp, 0x1c
mov ecx, esi
push 0x20
push dword [esp + 0x24]
push eax
push dword [esp + 0x1c]
push 0x51
push edi
call fcn.1004cb40
push dword [ebp + 8]
mov edi, dword [esp + 0x4c]
mov edx, 0x48
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
push edi
call fcn.10038e20
add esp, 0x24
mov edx, edi
mov ecx, esi
call fcn.10052c50
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.10052c50
cmp dword [esp + 0xc], 0
je 0x10050f84
mov al, byte [esi + 0x13]
mov byte [esp + 0x2b], al
cmp al, 8
jae 0x10050f84
xor ecx, ecx
lea eax, [esi + 0x78]
nop
mov edx, dword [esp + 0xc]
cmp dword [eax + 0xc], edx
je 0x10050f80
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x10050f60
movzx eax, byte [esp + 0x2b]
mov dword [esi + eax*4 + 0x18], edx
inc byte [esi + 0x13]
jmp 0x10050f84
mov byte [eax + 6], 1
cmp dword [esp + 0x14], 0
je 0x100513ba
mov al, byte [esi + 0x13]
mov byte [esp + 0x2b], al
cmp al, 8
jae 0x100513ba
xor ecx, ecx
lea eax, [esi + 0x78]
mov edx, dword [esp + 0x14]
cmp dword [eax + 0xc], edx
je 0x10050fc6
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x10050fa3
movzx eax, byte [esp + 0x2b]
mov dword [esi + eax*4 + 0x18], edx
inc byte [esi + 0x13]
jmp 0x100513ba
mov byte [eax + 6], 1
jmp 0x100513ba
mov edx, dword [edx + 0xc]
push ecx
mov ecx, esi
call fcn.10050510
add esp, 4
mov edi, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
mov esi, dword [edx + 0x2c]
movsx eax, word [edx + 0x20]
push ecx
inc eax
movsx ecx, word [esi + 0x22]
inc ecx
imul ecx, dword [edx + 0x1c]
mov edx, 0x87
add eax, ecx
mov ecx, edi
push eax
call fcn.10038f70
mov ecx, dword [esp + 0x34]
add esp, 8
movzx eax, word [ecx + 0x20]
test ax, ax
js 0x100513ba
cwde
lea ecx, [eax + eax*2]
mov eax, dword [esi + 4]
cmp byte [eax + ecx*8 + 0x15], 0x45
jne 0x100513ba
push dword [ebp + 8]
mov edx, 0x28
mov ecx, edi
call fcn.10038f00
add esp, 4
jmp 0x100513ba
cmp dword [esi + 0x1a0], 0
jne 0x1005107e
push str.RAISE___may_only_be_used_within_a_trigger_program
push esi
call fcn.1001e910
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret
cmp byte [edx + 1], 2
jne 0x10051095
mov eax, dword [esi + 0x19c]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov al, byte [edx + 1]
push 0
cmp al, 4
jne 0x100510bb
push dword [edx + 8]
mov edx, 0x16
mov ecx, edi
push 0
push 4
push 0
call fcn.10039210
add esp, 0x14
jmp 0x100513ba
push 0
push dword [edx + 8]
movsx eax, al
mov edx, 0x713
push eax
mov ecx, esi
call fcn.1005c650
add esp, 0x10
jmp 0x100513ba
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], 0
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x10]
mov ecx, dword [eax + 0x70]
mov dword [esp + 0x1c], ecx
lea eax, [ecx + 1]
mov dword [edi + 0x70], eax
lea eax, [ecx - 1]
mov edi, dword [esp + 0x34]
test ecx, eax
jne 0x10051141
lea eax, [ecx*8 + 4]
push 0
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x74]
mov ecx, dword [eax]
call fcn.1001c060
mov ecx, dword [esp + 0x18]
add esp, 8
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x74], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x74]
test eax, eax
je 0x10051153
mov dword [eax + ecx*4], 0xffffffff
mov edx, dword [edx + 0xc]
not ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
test edx, edx
je 0x100511cb
movups xmm0, xmmword [edx]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
movups xmmword [esp + 0x74], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [esp + 0x84], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [esp + 0x94], xmm0
call fcn.10051530
mov cl, byte [esp + 0x74]
add esp, 4
and dword [esp + 0x74], 0xffffefff
mov edx, dword [esp + 0x14]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
mov byte [esp + 0x96], cl
mov byte [esp + 0x70], 0x9d
mov byte [esp + 0x40], 0x4f
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
lea ecx, [eax - 1]
test ecx, ecx
jle 0x10051313
mov eax, dword [esp + 0x30]
dec ecx
shr ecx, 1
inc ecx
mov dword [esp + 0x18], ecx
inc dword [esi + 0x68]
mov eax, dword [eax]
test edx, edx
je 0x100511f5
mov dword [esp + 0x50], eax
jmp 0x100511f9
mov dword [esp + 0x20], eax
mov edx, dword [edi + 0x18]
mov dword [esp + 0x24], edx
mov ecx, dword [edx + 0x70]
mov dword [esp + 0x10], ecx
lea eax, [ecx + 1]
mov dword [edx + 0x70], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x1005123a
mov edx, dword [edx + 0x74]
lea eax, [ecx*8 + 4]
mov ecx, dword [esp + 0x24]
push 0
push eax
mov ecx, dword [ecx]
call fcn.1001c060
mov edx, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x74], eax
mov eax, dword [edx + 0x74]
test eax, eax
je 0x10051248
mov dword [eax + ecx*4], 0xffffffff
mov edx, dword [esp + 0x20]
not ecx
push 0x10
mov dword [esp + 0x14], ecx
push ecx
mov ecx, esi
call fcn.10052060
mov eax, dword [esp + 0x38]
mov ecx, esi
push dword [ebp + 8]
mov edx, dword [eax + 0x18]
call fcn.100516c0
mov eax, dword [edi + 0x18]
add esp, 0xc
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x54], ecx
jg 0x10051294
push 0
push dword [esp + 0x20]
mov edx, 0xe
mov ecx, edi
push 0
call fcn.10038de0
add esp, 0xc
jmp 0x100512cb
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, esi
call fcn.1004ffd0
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x74]
test ecx, ecx
je 0x100512ee
mov eax, dword [esp + 0x10]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x5c], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
add eax, 0x30
sub dword [esp + 0x18], 1
mov dword [esp + 0x30], eax
jne 0x100511e6
mov eax, dword [esp + 0x38]
test al, 1
je 0x1005133e
mov edx, dword [esp + 0x3c]
lea eax, [eax + eax*2]
inc dword [esi + 0x68]
mov ecx, esi
push dword [ebp + 8]
mov edx, dword [edx + 4]
mov edx, dword [edx + eax*8 - 0x18]
call fcn.100516c0
add esp, 4
mov ecx, esi
call fcn.1004ffd0
jmp 0x10051397
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x54], ecx
jg 0x10051361
push 0
push dword [ebp + 8]
mov edx, 0x1a
mov ecx, edi
push 0
call fcn.10038de0
add esp, 0xc
jmp 0x10051397
mov edx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x1a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x74]
test ecx, ecx
je 0x100513b3
mov eax, dword [esp + 0x1c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x5c], eax
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0xac]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret