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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edx + 0x30]
mov dword [esp + 0x8c], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x1c]
push esi
push edi
cmp dword [eax + 0x2c], 0
mov esi, dword [eax + 0x38]
jl 0x502384
jg 0x502376
cmp dword [eax + 0x28], 1
jbe 0x502384
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 3
mov dword [esp + 0x34], eax
jmp 0x50238c
mov dword [esp + 0x34], 0
cmp dword [edx + 0x2c], 0
jl 0x5023a7
jg 0x50239a
cmp dword [edx + 0x28], 1
jbe 0x5023a7
mov eax, dword [edx + 0x38]
mov edi, dword [eax + 4]
sub edi, dword [eax]
sar edi, 3
jmp 0x5023a9
xor edi, edi
add ecx, 6
mov dword [esp + 0x44], edi
mov eax, 1
mov dword [esp + 0x50], ecx
shl eax, cl
mov ecx, dword [esi + 4]
mov dword [esp + 0x4c], eax
add ecx, 8
cmp dword [esp + 0x60], 0
mov eax, dword [edx + 0x38]
mov dword [esp + 0x68], ecx
mov esi, dword [eax]
mov dword [esp + 0x6c], esi
jle 0x502efc
mov edx, dword [esp + 0x34]
mov eax, edx
shl eax, 5
mov dword [esp + 0x98], eax
mov eax, edi
shl eax, 5
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x60]
nop dword [eax]
mov dword [esp + 0x58], esi
mov edi, ecx
mov ecx, dword [esp + 0x94]
mov esi, 4
cmp eax, esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x64], ecx
cmovb esi, eax
mov dword [esp + 0x5c], esi
test ecx, ecx
je 0x502eca
mov ebx, dword [esp + 0x58]
jmp 0x502435
mov edi, dword [esp + 0x54]
cmp esi, 4
jb 0x502568
mov eax, dword [edi]
and eax, 0x50ff
or eax, 0
jne 0x502568
shl edx, 3
mov eax, dword [edx + edi]
lea ecx, [edx + edi]
and eax, 0x50ff
or eax, 0
jne 0x502568
mov eax, dword [ecx + edx]
add ecx, edx
and eax, 0x50ff
or eax, 0
jne 0x502568
mov eax, dword [edx + ecx]
and eax, 0x50ff
or eax, 0
jne 0x502568
mov eax, dword [esp + 0x4c]
mov ecx, ebx
cdq
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
nop word [eax + eax]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
test esi, esi
jl 0x5024af
jg 0x5024b6
test edi, edi
jae 0x5024b6
neg edi
adc esi, 0
neg esi
mov ecx, eax
mov eax, edx
and ecx, edi
and eax, esi
or ecx, eax
jne 0x5024dc
mov ecx, dword [esp + 0x1c]
inc ebx
mov eax, dword [esp + 0x44]
lea ecx, [ecx + eax*8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
cmp ebx, dword [esp + 0x5c]
jb 0x5024a0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
lea edi, [ecx + 0x10]
mov dword [ecx + 0x14], eax
lea esi, [ecx + 0x14]
mov dword [esp + 0x18], esi
cmp ebx, 4
jb 0x502504
push 0
push ecx
call fcn.005014e0
add esp, 8
jmp 0x502e98
push 1
push ecx
call fcn.005014e0
mov eax, dword [edi]
add eax, 0x48
cmp ebx, 2
mov dword [esi], eax
mov esi, dword [ebp + 8]
setae al
movzx eax, al
push eax
push esi
call fcn.005014e0
mov al, bl
and al, 1
movzx eax, al
push eax
push esi
call fcn.005014e0
mov ecx, dword [esp + 0x6c]
mov eax, ebx
imul eax, dword [esp + 0x4c]
add esp, 0x18
lea esi, [ecx + eax*8]
mov ecx, dword [esp + 0x58]
mov eax, ebx
imul eax, dword [esp + 0x44]
lea eax, [ecx + eax*8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
sub eax, ebx
mov dword [esp + 0x48], eax
jmp dword [ebx*4 + 0x502f54]
mov eax, dword [esp + 0x5c]
mov esi, edi
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
lea edx, [eax + 0x14]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edx
mov ecx, dword [esi]
mov eax, ecx
and eax, 0x5000
or eax, 0
jne 0x5027b9
mov eax, dword [ebp + 0x10]
shl eax, 8
movzx ecx, cl
or ecx, eax
mov eax, dword [edi]
movzx ecx, byte [ecx + 0x7c07c0]
lea eax, [eax + ecx*4]
mov dword [edx], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
test ecx, ecx
jl 0x5025bd
jg 0x5025c8
test eax, eax
jae 0x5025c8
neg eax
mov dword [esp + 0x1c], eax
adc ecx, 0
neg ecx
mov eax, dword [esp + 0x4c]
cdq
and eax, dword [esp + 0x1c]
and edx, ecx
or eax, edx
je 0x50285d
push 1
push dword [ebp + 8]
call fcn.005014e0
add esp, 8
jmp 0x5025ee
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
test edx, edx
jl 0x502603
jg 0x50260a
test eax, eax
jae 0x50260a
neg eax
adc edx, 0
neg edx
cmp dword [esp + 0x50], 6
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], eax
jle 0x50262d
call fcn.0068e460
and eax, 0x7f
mov ecx, dword [eax*8 + 0x7bedc0]
jmp 0x50265e
test ecx, ecx
js 0x502638
call fcn.0068e460
jmp 0x502654
movq xmm1, qword [esp + 0x70]
mov eax, ecx
neg eax
movd xmm0, eax
psllq xmm1, xmm0
movq qword [esp + 0x28], xmm1
mov eax, dword [esp + 0x28]
and eax, 0x7f
mov ecx, dword [eax*8 + 0x7be5c0]
mov eax, dword [ebp + 0x28]
add dword [eax], ecx
mov eax, dword [esp + 0x20]
shr eax, 4
movzx ecx, al
mov eax, dword [ebp + 8]
lea edx, [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
movzx ecx, byte [ecx + 0x7c05c0]
lea edi, [eax + 0x10]
mov eax, dword [edi]
lea eax, [eax + ecx*4]
mov dword [edx], eax
cmp dword [ebx + 4], 0
jg 0x50269d
jl 0x502699
cmp dword [ebx], 0
jae 0x50269d
mov al, 1
jmp 0x50269f
xor al, al
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x13], al
cmp byte [ecx + 0x7c06c0], al
setne al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.005014e0
mov eax, dword [esp + 0x3c]
mov ecx, esi
shl eax, 3
add esp, 8
sub ecx, eax
cmp byte [ebp + 0x14], 0
mov dword [esp + 0x20], ecx
lea edx, [eax + esi]
mov dword [esp + 0x14], edx
je 0x50271f
mov eax, dword [edx - 4]
or dword [edx - 8], 1
or dword [edx + 8], 8
cmp byte [esp + 0x13], 0
mov ecx, dword [edx + 4]
mov dword [edx - 4], eax
mov eax, dword [edx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [edx]
mov dword [edx + 4], ecx
je 0x502718
or eax, 0x110
mov dword [edx], eax
or dword [esi - 8], 0x220
or dword [esi + 8], 0x880
jmp 0x5027a1
or eax, 0x10
mov dword [edx], eax
jmp 0x502796
mov eax, dword [ecx - 4]
or dword [ecx - 8], 2
or dword [ecx + 8], 4
mov dword [ecx - 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx - 4]
or dword [edx - 8], 1
or dword [edx + 8], 8
cmp byte [esp + 0x13], 0
mov dword [edx - 4], eax
mov eax, dword [edx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
je 0x502782
or ecx, 0x440
mov dword [eax], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 4], ecx
mov eax, dword [edx + 4]
or dword [edx], 0x110
mov dword [edx + 4], eax
or dword [esi - 8], 0x220
or dword [esi + 8], 0x880
jmp 0x5027a1
or ecx, 0x40
mov dword [eax], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 4], ecx
mov eax, dword [edx + 4]
or dword [edx], 0x10
mov dword [edx + 4], eax
or dword [esi - 8], 0x20
or dword [esi + 8], 0x80
mov eax, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
or dword [esi], 0x1000
mov dword [esi + 4], eax
mov edx, dword [esp + 0x18]
and dword [esi], 0xffffbfff
sub dword [esp + 0x48], 1
mov eax, dword [esi + 4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esi + 4], eax
je 0x502e98
mov eax, dword [esp + 0x34]
shl eax, 3
mov dword [esp + 0x14], eax
add esi, eax
mov eax, dword [esp + 0x44]
lea ecx, [eax*8]
mov eax, dword [esi]
and eax, 0x5000
mov dword [esp + 0x1c], ecx
add ebx, ecx
or eax, 0
jne 0x502a0b
mov eax, dword [esi]
movzx ecx, al
mov eax, dword [ebp + 0x10]
shl eax, 8
or ecx, eax
mov eax, edi
movzx ecx, byte [ecx + 0x7c07c0]
mov eax, dword [eax]
lea eax, [eax + ecx*4]
mov dword [edx], eax
mov ecx, dword [ebx + 4]
mov edi, dword [ebx]
test ecx, ecx
jl 0x502836
jg 0x50283d
test edi, edi
jae 0x50283d
neg edi
adc ecx, 0
neg ecx
mov eax, dword [esp + 0x4c]
cdq
and eax, edi
and edx, ecx
or eax, edx
je 0x502a97
push 1
push dword [ebp + 8]
call fcn.005014e0
add esp, 8
jmp 0x50287b
push 0
push dword [ebp + 8]
call fcn.005014e0
mov edx, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], edx
jmp 0x5027bd
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
test edx, edx
jl 0x502890
jg 0x502897
test eax, eax
jae 0x502897
neg eax
adc edx, 0
neg edx
cmp dword [esp + 0x50], 6
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
jle 0x5028ba
call fcn.0068e460
and eax, 0x7f
mov ecx, dword [eax*8 + 0x7bedc0]
jmp 0x5028eb
test ecx, ecx
js 0x5028c5
call fcn.0068e460
jmp 0x5028e1
movq xmm1, qword [esp + 0x78]
mov eax, ecx
neg eax
movd xmm0, eax
psllq xmm1, xmm0
movq qword [esp + 0x20], xmm1
mov eax, dword [esp + 0x20]
and eax, 0x7f
mov ecx, dword [eax*8 + 0x7be5c0]
mov eax, dword [ebp + 0x28]
add dword [eax], ecx
mov eax, dword [esp + 0x28]
shr eax, 4
movzx ecx, al
mov eax, dword [ebp + 8]
lea edx, [eax + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
movzx ecx, byte [ecx + 0x7c05c0]
lea edi, [eax + 0x10]
mov eax, dword [edi]
lea eax, [eax + ecx*4]
mov dword [edx], eax
cmp dword [ebx + 4], 0
jg 0x50292a
jl 0x502926
cmp dword [ebx], 0
jae 0x50292a
mov al, 1
jmp 0x50292c
xor al, al
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x13], al
cmp byte [ecx + 0x7c06c0], al
setne al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.005014e0
mov eax, dword [esp + 0x3c]
mov ecx, esi
add esp, 8
lea edx, [eax*8]
sub ecx, edx
mov dword [esp + 0x14], edx
mov eax, dword [ecx - 4]
or dword [ecx - 8], 2
or dword [ecx + 8], 4
mov dword [ecx - 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + esi - 4]
or dword [edx + esi - 8], 1
or dword [edx + esi + 8], 8
cmp byte [esp + 0x13], 0
mov dword [edx + esi - 4], eax
mov eax, dword [edx + esi + 0xc]
mov dword [edx + esi + 0xc], eax
mov eax, dword [ecx]
je 0x5029c2
or eax, 0x440
mov dword [ecx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + esi + 4]
or dword [edx + esi], 0x110
mov dword [edx + esi + 4], eax
or dword [esi - 8], 0x220
or dword [esi + 8], 0x880
jmp 0x5029e4
or eax, 0x40
mov dword [ecx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + esi + 4]
or dword [edx + esi], 0x10
mov dword [edx + esi + 4], eax
or dword [esi - 8], 0x20
or dword [esi + 8], 0x80
mov eax, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
or dword [esi], 0x1000
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
lea ecx, [eax*8]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x18]
and dword [esi], 0xffffbfff
sub dword [esp + 0x48], 1
mov eax, dword [esi + 4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esi + 4], eax
je 0x502e98
add esi, dword [esp + 0x14]
add ebx, ecx
mov eax, dword [esi]
and eax, 0x5000
or eax, 0
jne 0x502c7d
mov eax, dword [esi]
movzx ecx, al
mov eax, dword [ebp + 0x10]
shl eax, 8
or ecx, eax
mov eax, edi
movzx ecx, byte [ecx + 0x7c07c0]
mov eax, dword [eax]
lea eax, [eax + ecx*4]
mov dword [edx], eax
mov ecx, dword [ebx + 4]
mov edi, dword [ebx]
test ecx, ecx
jl 0x502a70
jg 0x502a77
test edi, edi
jae 0x502a77
neg edi
adc ecx, 0
neg ecx
mov eax, dword [esp + 0x4c]
cdq
and eax, edi
and edx, ecx
or eax, edx
je 0x502c60
push 1
push dword [ebp + 8]
call fcn.005014e0
add esp, 8
jmp 0x502ac9
push 0
push dword [ebp + 8]
call fcn.005014e0
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jmp 0x502a0f
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
test edx, edx
jl 0x502ade
jg 0x502ae5
test eax, eax
jae 0x502ae5
neg eax
adc edx, 0
neg edx
cmp dword [esp + 0x50], 6
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
jle 0x502b0e
call fcn.0068e460
and eax, 0x7f
mov ecx, dword [eax*8 + 0x7bedc0]
jmp 0x502b42
test ecx, ecx
js 0x502b19
call fcn.0068e460
jmp 0x502b38
movq xmm1, qword [esp + 0x80]
mov eax, ecx
neg eax
movd xmm0, eax
psllq xmm1, xmm0
movq qword [esp + 0x20], xmm1
mov eax, dword [esp + 0x20]
and eax, 0x7f
mov ecx, dword [eax*8 + 0x7be5c0]
mov eax, dword [ebp + 0x28]
add dword [eax], ecx
mov eax, dword [esp + 0x28]
shr eax, 4
movzx ecx, al
mov eax, dword [ebp + 8]
lea edx, [eax + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
movzx ecx, byte [ecx + 0x7c05c0]
lea edi, [eax + 0x10]
mov eax, dword [edi]
lea eax, [eax + ecx*4]
mov dword [edx], eax
cmp dword [ebx + 4], 0
jg 0x502b81
jl 0x502b7d
cmp dword [ebx], 0
jae 0x502b81
mov al, 1
jmp 0x502b83
xor al, al
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x13], al
cmp byte [ecx + 0x7c06c0], al
setne al
movzx eax, al
push eax
push dword [ebp + 8]
call fcn.005014e0
mov eax, dword [esp + 0x3c]
mov ecx, esi
add esp, 8
lea edx, [eax*8]
sub ecx, edx
mov dword [esp + 0x14], edx
mov eax, dword [ecx - 4]
or dword [ecx - 8], 2
or dword [ecx + 8], 4
mov dword [ecx - 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + esi - 4]
or dword [edx + esi - 8], 1
or dword [edx + esi + 8], 8
cmp byte [esp + 0x13], 0
mov dword [edx + esi - 4], eax
mov eax, dword [edx + esi + 0xc]
mov dword [edx + esi + 0xc], eax
mov eax, dword [ecx]
je 0x502c19
or eax, 0x440
mov dword [ecx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + esi + 4]
or dword [edx + esi], 0x110
mov dword [edx + esi + 4], eax
or dword [esi - 8], 0x220
or dword [esi + 8], 0x880
jmp 0x502c3b
or eax, 0x40
mov dword [ecx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + esi + 4]
or dword [edx + esi], 0x10
mov dword [edx + esi + 4], eax
or dword [esi - 8], 0x20
or dword [esi + 8], 0x80
mov eax, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
or dword [esi], 0x1000
mov dword [esi + 4], eax
mov eax, dword [esp + 0x44]
lea ecx, [eax*8]
jmp 0x502c7d
push 0
push dword [ebp + 8]
call fcn.005014e0
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
and dword [esi], 0xffffbfff
mov edx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x48]
add eax, 0xffffffff
je 0x502e98
add esi, dword [esp + 0x14]
add ebx, ecx
mov ecx, dword [esi]
mov eax, ecx
and eax, 0x5000
or eax, 0
jne 0x502e8c
mov eax, dword [ebp + 0x10]
shl eax, 8
movzx ecx, cl
or ecx, eax
mov eax, dword [edi]
movzx ecx, byte [ecx + 0x7c07c0]
lea eax, [eax + ecx*4]
mov dword [edx], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
test ecx, ecx
jl 0x502cde
jg 0x502ce9
test eax, eax
jae 0x502ce9
neg eax
mov dword [esp + 0x20], eax
adc ecx, 0
neg ecx
mov eax, dword [esp + 0x4c]
cdq
and eax, dword [esp + 0x20]
and edx, ecx
or eax, edx
je 0x502e7f
push 1
push dword [ebp + 8]
call fcn.005014e0
add esp, 8
jmp 0x502d0f
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
test edx, edx
jl 0x502d24
jg 0x502d2b
test eax, eax
jae 0x502d2b
neg eax
adc edx, 0
neg edx
cmp dword [esp + 0x50], 6
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], eax
jle 0x502d54
call fcn.0068e460
and eax, 0x7f
mov ecx, dword [eax*8 + 0x7bedc0]
jmp 0x502d88
test ecx, ecx
js 0x502d5f
call fcn.0068e460
jmp 0x502d7e
movq xmm1, qword [esp + 0x88]
mov eax, ecx
neg eax
movd xmm0, eax
psllq xmm1, xmm0
movq qword [esp + 0x20], xmm1
mov eax, dword [esp + 0x20]
and eax, 0x7f
mov ecx, dword [eax*8 + 0x7be5c0]
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
lea edi, [edx + 0x10]
add dword [eax], ecx
mov eax, dword [esp + 0x28]
shr eax, 4
movzx eax, al
mov dword [esp + 0x28], eax
movzx ecx, byte [eax + 0x7c05c0]
mov eax, dword [edi]
lea eax, [eax + ecx*4]
mov dword [edx + 0x14], eax
cmp dword [ebx + 4], 0
jg 0x502dc1
jl 0x502dbd
cmp dword [ebx], 0
jae 0x502dc1
mov bl, 1
jmp 0x502dc3
xor bl, bl
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x7c06c0], bl
setne al
movzx eax, al
push eax
push edx
call fcn.005014e0
mov eax, dword [esp + 0x3c]
mov edx, esi
shl eax, 3
add esp, 8
sub edx, eax
lea ecx, [eax + esi]
mov dword [esp + 0x28], ecx
mov eax, dword [edx - 4]
or dword [edx - 8], 2
or dword [edx + 8], 4
mov dword [edx - 4], eax
mov eax, dword [edx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx - 4]
or dword [ecx - 8], 1
or dword [ecx + 8], 8
mov dword [ecx - 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx]
test bl, bl
je 0x502e46
or eax, 0x440
mov dword [edx], eax
mov eax, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 4]
or dword [ecx], 0x110
mov dword [ecx + 4], eax
or dword [esi - 8], 0x220
or dword [esi + 8], 0x880
jmp 0x502e65
or eax, 0x40
mov dword [edx], eax
mov eax, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 4]
or dword [ecx], 0x10
mov dword [ecx + 4], eax
or dword [esi - 8], 0x20
or dword [esi + 8], 0x80
mov eax, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
or dword [esi], 0x1000
mov dword [esi + 4], eax
jmp 0x502e8c
push 0
push dword [ebp + 8]
call fcn.005014e0
add esp, 8
mov eax, dword [esi + 4]
and dword [esi], 0xffffbfff
mov dword [esi + 4], eax
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x58]
dec eax
add dword [esp + 0x54], 8
add ebx, 8
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], ebx
test eax, eax
jne 0x502431
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x60]
jmp 0x502ecd
lea edi, [ebx + 0x10]
mov ecx, dword [esp + 0x68]
sub eax, 4
mov esi, dword [esp + 0x6c]
add ecx, dword [esp + 0x98]
add esi, dword [esp + 0x9c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], esi
test eax, eax
jg 0x502400
jmp 0x502eff
lea edi, [ebx + 0x10]
cmp byte [ebp + 0x18], 0
je 0x502f30
mov eax, dword [edi]
add eax, 0x48
push 1
push ebx
mov dword [ebx + 0x14], eax
call fcn.005014e0
push 0
push ebx
call fcn.005014e0
push 1
push ebx
call fcn.005014e0
push 0
push ebx
call fcn.005014e0
add esp, 0x20
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x502f42
dec eax
push eax
push ebx
call fcn.00501040
add esp, 8
movzx eax, byte [ebx + 0x20]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret