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

Disassembly:
sub esp, 0x64
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov esi, dword [esp + 0x78]
push edi
mov ebx, dword [ebp]
xor edi, edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], edi
cmp dword [ebx], edi
je 0x502900
xor edx, edx
mov dword [esp + 0x30], edx
jmp 0x502911
push 0x20
push ebx
call fcn.00511ae0
add esp, 8
mov dword [esp + 0x30], eax
mov edx, eax
cmp dword [ebx], edi
jne 0x503758
mov ecx, dword [esp + 0x80]
xorps xmm0, xmm0
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov dword [edx + 0x10], esi
mov dword [ecx + 8], edx
movzx eax, word [esi]
mov edx, eax
mov ecx, eax
mov dword [esp + 0x14], edx
mov edx, 0x98
cmp ax, dx
jne 0x50295a
movzx eax, word [esi + 2]
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], eax
mov eax, 0x98
lea edx, [esi + 2]
cmp cx, ax
mov eax, dword [ebp + 0xc]
cmovne edx, esi
mov ecx, edx
mov dword [esp + 0x38], edx
sub ecx, dword [ebp + 8]
sar ecx, 1
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x14]
movzx eax, ax
add eax, 0xffffff79
cmp eax, 7
ja case.0x50299c.136
movzx eax, byte [eax + 0x503770]
jmp dword [eax*4 + 0x503764]
lea edi, [edx + 4]
jmp case.0x50299c.136
movzx edx, word [edx + 4]
mov eax, dword [ebp + 0x20]
lea eax, [eax + edx*4]
add edx, edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
lea edi, [edx + 6]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push edx
push ebp
call fcn.00514b70
mov edx, dword [esp + 0x44]
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x34], ecx
mov dword [edx + 0x18], ecx
test ecx, ecx
jns 0x502bbd
mov esi, dword [esp + 0x28]
test esi, esi
je 0x502a00
xor eax, eax
cmp dword [ebp + 0x48], eax
setne al
add eax, 2
jmp 0x502a05
mov eax, 1
cmp dword [esp + 0x18], 0
je 0x502a0d
inc eax
cmp dword [esp + 0x20], 0
lea ecx, [eax + 1]
cmovne ecx, eax
push ecx
push ebp
mov dword [esp + 0x2c], ecx
mov dword [edx + 0x1c], ecx
call fcn.004fc250
add esp, 8
cmp dword [esp + 0x34], 0xffffffff
jne 0x502a48
push 0
push 0xb
push dword [esp + 0x24]
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
test esi, esi
je 0x502b1a
mov eax, dword [ebp + 0x24]
shl esi, 2
add eax, esi
mov dword [esp + 0x10], 2
push eax
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
mov eax, dword [ebp + 0x24]
add eax, 4
add eax, esi
push eax
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0051c640
push 0
push 1
push 0
push 0x8b
push 0x20
push ebx
call fcn.0051c640
mov eax, dword [ebp + 0x48]
add esp, 0x48
test eax, eax
je 0x502abe
push eax
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
push 0
push 3
push 4
push 0x8b
push 0x20
push ebx
call fcn.0051c640
mov esi, dword [esp + 0x30]
add esp, 0x18
test esi, esi
je 0x502af3
push dword [ebp + 0x44]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
cmp dword [ebp + 0x48], 0
je 0x502b5a
push 0
push 1
push 8
push 0x8b
push 0x20
push ebx
call fcn.0051c640
mov ebp, 3
add esp, 0x18
mov dword [esp + 0x10], ebp
jmp 0x502b5f
mov esi, dword [esp + 0x18]
test esi, esi
je 0x502b39
push dword [ebp + 0x44]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
push 0
push 2
push 0
push 0x8b
push 0x20
push ebx
call fcn.0051c640
mov ebp, 1
add esp, 0x18
mov dword [esp + 0x10], ebp
jmp 0x502b5f
mov ebp, 2
test esi, esi
je 0x502b68
inc ebp
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x20], 0
jne 0x502b8b
push 1
push 0x40
lea eax, [ebp*4]
push eax
push 0x8b
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
test esi, esi
je 0x502bb0
dec ebp
push 0
push 3
mov dword [esp + 0x18], ebp
lea eax, [ebp*4]
push eax
push 0x8b
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x502cff
mov eax, dword [esp + 0x20]
xor eax, 1
inc eax
add eax, ecx
cmp dword [esp + 0x18], 0
je 0x502bcf
inc eax
mov esi, dword [esp + 0x28]
lea ecx, [eax + 1]
test esi, esi
cmovne ecx, eax
push ecx
push ebp
mov dword [esp + 0x2c], ecx
mov dword [edx + 0x1c], ecx
call fcn.004fc250
push dword [esp + 0x24]
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
add esp, 0x20
cmp dword [esp + 0x18], 0
je 0x502c1f
push dword [ebp + 0x44]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
mov eax, dword [esp + 0x24]
shl eax, 2
push eax
push 0x40
push 0
push 0xb
push dword [esp + 0x2c]
push 0x8d
push 0x60
push ebx
call fcn.0051c880
xor eax, eax
add esp, 0x20
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], eax
jne 0x502c6b
push 1
push 0x40
push eax
push 0x8b
push 0x20
push ebx
call fcn.0051c640
mov eax, 1
add esp, 0x18
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], 0
je 0x502c93
push 0
push 3
shl eax, 2
push eax
push 0x8b
push 0x20
push ebx
call fcn.0051c640
mov eax, dword [esp + 0x28]
add esp, 0x18
inc eax
mov dword [esp + 0x10], eax
test esi, esi
jne 0x502cb7
push esi
push 2
shl eax, 2
push eax
push 0x8b
push 0x20
push ebx
call fcn.0051c640
mov eax, dword [esp + 0x28]
add esp, 0x18
inc eax
mov dword [esp + 0x10], eax
push 0
push 1
shl eax, 2
push eax
push 0x8b
push 0x20
push ebx
call fcn.0051c640
mov esi, dword [esp + 0x3c]
mov eax, esi
sub eax, dword [esp + 0x4c]
push eax
lea eax, [esi - 1]
push eax
mov eax, dword [esp + 0x58]
push 0
push eax
push ebp
call fcn.00515890
mov ebp, dword [esp + 0x54]
xor ecx, ecx
add esp, 0x2c
test ebp, ebp
sete cl
or eax, 0xffffffff
sub eax, ecx
add dword [esp + 0x10], eax
test ebp, ebp
je 0x502d1b
push 0
push 2
push dword [esp + 0x34]
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
push ebx
call fcn.0051c410
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x44], eax
cmp word [ecx], 0x7c
je 0x5036b6
nop word [eax + eax]
mov edx, dword [esp + 0x30]
push edx
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
movzx eax, word [ecx + 2]
lea ecx, [ecx + eax*2]
push ecx
push edi
mov edi, dword [esp + 0x84]
push edi
mov dword [esp + 0x48], ecx
call fcn.00506db0
add esp, 0x10
cmp dword [ebx], 0
jne 0x503758
mov eax, dword [esp + 0x34]
test eax, eax
jns 0x502f4b
cmp eax, 0xffffffff
jne 0x502da2
push dword [esp + 0x1c]
push 0x8d
push 0
push 0xb
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
test ebp, ebp
je 0x502e56
mov esi, dword [esp + 0x2c]
push esi
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
mov eax, dword [edi + 0x24]
push 0
push 2
lea eax, [eax + ebp*4]
add eax, 4
push eax
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x30
cmp dword [ebx], 0
jne 0x502e02
lea eax, [esi + 0x20]
push eax
push 0x8d
push 0
push 2
push 1
push ebx
call fcn.00511740
add esp, 0x18
test eax, eax
je 0x502e02
mov byte [eax], 0x89
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x502e21
mov eax, ebp
shr eax, 1
push eax
push 0x40
push ecx
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
cmp dword [ebx], 0
jne 0x502e92
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*4]
add eax, 0x20
push eax
push 0x8d
push 0
push 1
push 1
push ebx
call fcn.00511740
mov ebp, dword [esp + 0x2c]
add esp, 0x18
mov esi, 0x8c
test eax, eax
je 0x502e9b
mov byte [eax], 0x89
jmp 0x502e9b
mov ebp, dword [esp + 0x14]
mov esi, 0x8c
cmp bp, si
jne 0x502e7a
push 0
push 0x8b
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
push 0
push 2
push 0
push 0x8b
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
jmp 0x502e9b
mov ebp, dword [esp + 0x14]
mov esi, 0x8c
cmp dword [esp + 0x18], 0
je 0x502ec2
mov eax, dword [esp + 0x10]
shl eax, 2
push eax
push 0x8b
push dword [edi + 0x44]
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
cmp bp, si
je 0x502ed1
mov eax, 0x8e
cmp bp, ax
jne 0x502f07
push 0
push 2
push 0
push 1
push 0
push ebx
call fcn.0051ae50
add esp, 0x18
mov esi, eax
cmp dword [ebx], 0
jne 0x502f07
push 8
push ebx
call fcn.00511ae0
add esp, 8
test eax, eax
je 0x502f07
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x20], 0
jne 0x5030ff
cmp dword [ebx], 0
jne 0x5030ff
mov eax, dword [esp + 0x24]
lea eax, [eax*4 - 4]
push eax
push 0x8b
push 0
push 0x40
push 1
push ebx
call fcn.00511740
add esp, 0x18
test eax, eax
je 0x5030ff
mov byte [eax], 0xc7
jmp 0x5030ff
shl esi, 2
test ebp, ebp
je 0x502ff6
push esi
push 0x40
push dword [esp + 0x24]
push 0x8d
push 0
push 0xb
push 0x62
push ebx
call fcn.0051c880
push dword [esp + 0x4c]
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
mov eax, dword [edi + 0x24]
lea esi, [ebp*4]
push 0
push 2
add eax, 4
add eax, esi
push eax
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x50
push 0
push 2
push dword [esp + 0x34]
push 0x8d
push 0x20
push ebx
call fcn.0051c640
mov ecx, dword [edi + 0x48]
add esp, 0x18
test ecx, ecx
je 0x502fde
mov eax, ebp
shr eax, 1
push eax
push 0x40
push ecx
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
mov eax, dword [edi + 0x24]
mov ecx, 0x8d
mov ebp, dword [esp + 0x14]
add eax, esi
mov edx, 1
lea esi, [ecx - 1]
jmp 0x503066
push dword [esp + 0x1c]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0051c640
push esi
push 0x40
push 0
push 3
push 0
push 0xb
push 0x62
push ebx
call fcn.0051c880
mov ebp, dword [esp + 0x4c]
mov esi, 0x8c
add esp, 0x38
cmp bp, si
jne 0x503050
mov eax, 0xfffffffe
sub eax, dword [esp + 0x34]
shl eax, 2
push eax
push 0x83
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
mov eax, 0xfffffffe
mov ecx, 0x83
sub eax, dword [esp + 0x34]
mov edx, 2
shl eax, 2
push 0
push edx
push eax
push ecx
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
cmp dword [esp + 0x18], 0
je 0x50309d
mov eax, dword [esp + 0x10]
shl eax, 2
push eax
push 0x8b
push dword [edi + 0x44]
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
cmp bp, si
je 0x5030ac
mov eax, 0x8e
cmp bp, ax
jne 0x5030e2
push 0
push 2
push 0
push 1
push 0
push ebx
call fcn.0051ae50
add esp, 0x18
mov esi, eax
cmp dword [ebx], 0
jne 0x5030e2
push 8
push ebx
call fcn.00511ae0
add esp, 8
test eax, eax
je 0x5030e2
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x20], 0
jne 0x5030ff
push 0
push 0x40
push 0
push 0x8b
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
push 0x22
push ebx
call fcn.0051c380
add esp, 8
test eax, eax
je 0x503125
mov edx, dword [esp + 0x44]
test edx, edx
je 0x503125
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], edx
or ecx, 1
mov dword [eax + 8], ecx
push edi
call fcn.00514900
mov eax, dword [esp + 0x34]
add esp, 4
mov ebx, dword [edi]
mov dword [esp + 0x40], ebx
mov ebp, dword [eax + 8]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x48], eax
test ebp, ebp
je 0x503343
nop word [eax + eax]
cmp dword [ebp + 4], 0
je 0x5031e0
cmp dword [ebx], 0
je 0x503163
xor esi, esi
jmp 0x5031b8
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x503172
mov eax, dword [esi + 8]
cmp eax, dword [ebx + 0x4c]
je 0x5031b8
push 0xc
push ebx
call fcn.00511ae0
mov esi, eax
add esp, 8
test esi, esi
je 0x5031b8
mov dword [esi], 0
mov eax, dword [ebx + 0x4c]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x50319a
mov dword [eax], esi
jmp 0x50319d
mov dword [ebx + 8], esi
push 2
push ebx
mov dword [ebx + 0x18], esi
call fcn.00511b40
add esp, 8
test eax, eax
jne 0x5031b3
xor esi, esi
jmp 0x5031b8
mov word [eax], 0
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5031e0
nop
mov edx, dword [ecx]
test edx, edx
je 0x5031d9
test esi, esi
je 0x5031d9
mov eax, dword [edx + 8]
and eax, 0xfffffffd
mov dword [edx + 0xc], esi
or eax, 1
mov dword [edx + 8], eax
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x5031c0
mov ecx, dword [ebp + 0x10]
movzx eax, word [ecx]
add eax, 0xfffffffd
cmp eax, 0xa5
ja case.0x5031fb.4
movzx eax, byte [eax + 0x5037b4]
jmp dword [eax*4 + 0x503778]
push 0
push 0x8b
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
push 4
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [edi]
call fcn.0051c880
push 0
push 1
push dword [edi + 0x24]
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x50
jmp case.0x5031fb.4
push ebp
push edi
call fcn.00505350
add esp, 8
jmp case.0x5031fb.4
push ebp
push edi
call fcn.00508810
add esp, 8
jmp case.0x5031fb.4
cmp dword [ebp + 0x1c], 0
mov ebx, dword [edi]
jne 0x5032f1
mov esi, dword [ebp + 0x18]
push 0x23
push ebx
mov edi, dword [esi + 8]
call fcn.0051c380
add esp, 8
test edi, edi
jne 0x5032a8
cmp dword [ebx], 0
mov edi, eax
jne 0x5032bb
push 8
push ebx
call fcn.00511ae0
add esp, 8
test eax, eax
je 0x5032bb
mov ecx, dword [esi + 0x10]
mov dword [eax + 4], ecx
mov dword [eax], edi
mov dword [esi + 0x10], eax
jmp 0x5032bb
test eax, eax
je 0x5032bb
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], edi
or ecx, 1
mov dword [eax + 8], ecx
mov esi, dword [ebp + 0x14]
push 0
push 0x40
push 0
push 1
push 1
push ebx
call fcn.0051ae50
mov edi, dword [esp + 0x90]
add esp, 0x18
test eax, eax
je 0x5032fd
test esi, esi
je 0x5032fd
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
jmp 0x5032fd
push dword [ebp + 8]
push edi
call fcn.004ff7e0
add esp, 8
push ebx
call fcn.0051c410
mov edx, dword [ebp + 0xc]
add esp, 4
mov esi, eax
test edx, edx
je 0x503330
nop
mov ecx, dword [edx]
test ecx, ecx
je 0x503329
test esi, esi
je 0x503329
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x503310
mov ebx, dword [esp + 0x40]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x503150
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [edi + 0x1c], eax
cmp dword [ebx], 0
jne 0x503758
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x503366
mov eax, dword [esi + 8]
cmp eax, dword [ebx + 0x4c]
je 0x5035e1
push 0xc
push ebx
call fcn.00511ae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5035ac
jmp 0x5035e1
push ebp
push edi
call fcn.004fdaf0
add esp, 8
jmp case.0x5031fb.4
push ebp
push edi
call fcn.004ffd00
add esp, 8
jmp case.0x5031fb.4
mov eax, 0x81
push ebp
push edi
cmp word [ecx + 2], ax
jbe 0x503382
call fcn.004ffd00
add esp, 8
jmp case.0x5031fb.4
push ebp
push edi
call fcn.00502680
add esp, 8
jmp case.0x5031fb.4
mov eax, 0x81
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 4], 0
cmp word [ecx + 2], ax
jbe 0x5033f7
push ebp
push ecx
push edi
call fcn.005012c0
push dword [ebp + 8]
push edi
call fcn.004ffd00
add esp, 0x14
jmp case.0x5031fb.4
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x50]
push 0
push eax
push ecx
push edi
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x70], ecx
call fcn.004fde10
add esp, 0x10
jmp case.0x5031fb.4
mov eax, dword [edi + 0x78]
neg eax
sbb eax, eax
and eax, 0x10
push eax
push 0x8b
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
cmp dword [edi + 0x78], 0
je 0x503470
push 0
push 0x8b
push 0
push 3
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
cmp dword [edi + 0x78], 0
mov ecx, 0x14
mov eax, 4
cmovne eax, ecx
push eax
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [edi]
call fcn.0051c880
push 0
push 1
push dword [edi + 0x40]
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x38
cmp dword [edi + 0x78], 0
je case.0x5031fb.4
push 0
push 3
push dword [edi + 0x44]
push 0x8d
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
jmp case.0x5031fb.4
push ebp
push edi
call fcn.00504c30
add esp, 8
jmp case.0x5031fb.4
cmp dword [edi + 0x84], 0
jne 0x5034fd
push 0xffffffffffffffff
push 0x40
push 0
push 1
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
mov esi, dword [edi + 0xc0]
push 0x22
push ebx
call fcn.0051c380
add esp, 8
test esi, esi
jne 0x503546
cmp dword [ebx], 0
mov esi, eax
jne case.0x5031fb.4
push 8
push ebx
call fcn.00511ae0
add esp, 8
test eax, eax
je case.0x5031fb.4
mov ecx, dword [edi + 0xe0]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [edi + 0xe0], eax
jmp case.0x5031fb.4
test eax, eax
je case.0x5031fb.4
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
jmp case.0x5031fb.4
push ebx
call fcn.0051c410
mov edx, dword [ebp + 0xc]
add esp, 4
mov esi, eax
test edx, edx
je case.0x5031fb.4
mov ecx, dword [edx]
test ecx, ecx
je 0x503591
test esi, esi
je 0x503591
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x503578
jmp case.0x5031fb.4
push ebp
push edi
call fcn.0050a7b0
add esp, 8
jmp case.0x5031fb.4
mov dword [esi], 0
mov eax, dword [ebx + 0x4c]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5035c3
mov dword [eax], esi
jmp 0x5035c6
mov dword [ebx + 8], esi
push 2
push ebx
mov dword [ebx + 0x18], esi
call fcn.00511b40
add esp, 8
test eax, eax
jne 0x5035dc
xor esi, esi
jmp 0x5035e1
mov word [eax], 0
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x503610
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x503609
test esi, esi
je 0x503609
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], esi
or eax, 1
mov dword [ecx + 8], eax
mov edx, dword [edx + 4]
test edx, edx
jne 0x5035f0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
test esi, esi
jns 0x503635
xor eax, eax
test ebp, ebp
cmovne eax, dword [esp + 0x2c]
xor ecx, ecx
test ebp, ebp
setne cl
lea ecx, [ecx*2 + 0x8b]
jmp 0x50368d
test ebp, ebp
je 0x503666
mov eax, dword [esp + 0x38]
cmp word [eax], 0x7c
jne 0x50365b
push dword [esp + 0x1c]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0051c640
add esp, 0x18
mov eax, dword [esp + 0x2c]
mov ecx, 0x8d
jmp 0x50368d
push dword [esp + 0x1c]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0051c640
mov eax, 0xfffffffe
add esp, 0x18
sub eax, esi
mov ecx, 0x83
shl eax, 2
push eax
push ecx
push 0
push 2
mov edx, ebx
push 0x20
push edx
call fcn.0051c640
mov ecx, dword [esp + 0x50]
add esp, 0x18
cmp word [ecx], 0x7c
je 0x5036ba
mov esi, dword [esp + 0x24]
lea edi, [ecx + 4]
jmp 0x502d40
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x30]
add esi, 0xc
cmp dword [esp + 0x20], 0
mov dword [esi], 0
jne 0x50370a
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x24]
push 0
push 0x40
jge 0x5036ec
lea eax, [eax*4 - 4]
push eax
push 0x8b
jmp 0x5036f7
neg eax
shl eax, 2
push eax
push 0x83
push 1
push ebx
call fcn.0051ae50
push eax
push esi
push ebx
call fcn.004fc220
add esp, 0x24
push ebx
call fcn.0051c410
mov ebx, dword [esp + 0x40]
add esp, 4
mov edx, eax
test ebx, ebx
je 0x503740
nop dword [eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x503739
test edx, edx
je 0x503739
mov eax, dword [ecx + 8]
and eax, 0xfffffffd
mov dword [ecx + 0xc], edx
or eax, 1
mov dword [ecx + 8], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x503720
push edi
call fcn.0050d640
mov eax, dword [esp + 0x3c]
add esp, 4
add eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret