Function at 0x531500
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 0x531540
xor edx, edx
mov dword [esp + 0x30], edx
jmp 0x531551
push 0x20
push ebx
call fcn.00540720
add esp, 8
mov dword [esp + 0x30], eax
mov edx, eax
cmp dword [ebx], edi
jne 0x532398
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 0x53159a
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.0x5315dc.136
movzx eax, byte [eax + 0x5323b0]
jmp dword [eax*4 + 0x5323a4]
lea edi, [edx + 4]
jmp case.0x5315dc.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.005437b0
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 0x5317fd
mov esi, dword [esp + 0x28]
test esi, esi
je 0x531640
xor eax, eax
cmp dword [ebp + 0x48], eax
setne al
add eax, 2
jmp 0x531645
mov eax, 1
cmp dword [esp + 0x18], 0
je 0x53164d
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.0052ae90
add esp, 8
cmp dword [esp + 0x34], 0xffffffff
jne 0x531688
push 0
push 0xb
push dword [esp + 0x24]
push 0x8d
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
test esi, esi
je 0x53175a
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.0054b290
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.0054b290
push 0
push 1
push 0
push 0x8b
push 0x20
push ebx
call fcn.0054b290
mov eax, dword [ebp + 0x48]
add esp, 0x48
test eax, eax
je 0x5316fe
push eax
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
push 0
push 3
push 4
push 0x8b
push 0x20
push ebx
call fcn.0054b290
mov esi, dword [esp + 0x30]
add esp, 0x18
test esi, esi
je 0x531733
push dword [ebp + 0x44]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
cmp dword [ebp + 0x48], 0
je 0x53179a
push 0
push 1
push 8
push 0x8b
push 0x20
push ebx
call fcn.0054b290
mov ebp, 3
add esp, 0x18
mov dword [esp + 0x10], ebp
jmp 0x53179f
mov esi, dword [esp + 0x18]
test esi, esi
je 0x531779
push dword [ebp + 0x44]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
push 0
push 2
push 0
push 0x8b
push 0x20
push ebx
call fcn.0054b290
mov ebp, 1
add esp, 0x18
mov dword [esp + 0x10], ebp
jmp 0x53179f
mov ebp, 2
test esi, esi
je 0x5317a8
inc ebp
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x20], 0
jne 0x5317cb
push 1
push 0x40
lea eax, [ebp*4]
push eax
push 0x8b
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
test esi, esi
je 0x5317f0
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.0054b290
add esp, 0x18
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x53193f
mov eax, dword [esp + 0x20]
xor eax, 1
inc eax
add eax, ecx
cmp dword [esp + 0x18], 0
je 0x53180f
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.0052ae90
push dword [esp + 0x24]
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0054b290
add esp, 0x20
cmp dword [esp + 0x18], 0
je 0x53185f
push dword [ebp + 0x44]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0054b290
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.0054b4d0
xor eax, eax
add esp, 0x20
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], eax
jne 0x5318ab
push 1
push 0x40
push eax
push 0x8b
push 0x20
push ebx
call fcn.0054b290
mov eax, 1
add esp, 0x18
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], 0
je 0x5318d3
push 0
push 3
shl eax, 2
push eax
push 0x8b
push 0x20
push ebx
call fcn.0054b290
mov eax, dword [esp + 0x28]
add esp, 0x18
inc eax
mov dword [esp + 0x10], eax
test esi, esi
jne 0x5318f7
push esi
push 2
shl eax, 2
push eax
push 0x8b
push 0x20
push ebx
call fcn.0054b290
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.0054b290
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.005444d0
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 0x53195b
push 0
push 2
push dword [esp + 0x34]
push 0x8d
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
push ebx
call fcn.0054b060
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x44], eax
cmp word [ecx], 0x7c
je 0x5322f6
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.005359f0
add esp, 0x10
cmp dword [ebx], 0
jne 0x532398
mov eax, dword [esp + 0x34]
test eax, eax
jns 0x531b8b
cmp eax, 0xffffffff
jne 0x5319e2
push dword [esp + 0x1c]
push 0x8d
push 0
push 0xb
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
test ebp, ebp
je 0x531a96
mov esi, dword [esp + 0x2c]
push esi
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0054b290
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.0054b290
add esp, 0x30
cmp dword [ebx], 0
jne 0x531a42
lea eax, [esi + 0x20]
push eax
push 0x8d
push 0
push 2
push 1
push ebx
call fcn.00540380
add esp, 0x18
test eax, eax
je 0x531a42
mov byte [eax], 0x89
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x531a61
mov eax, ebp
shr eax, 1
push eax
push 0x40
push ecx
push 0x8d
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
cmp dword [ebx], 0
jne 0x531ad2
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.00540380
mov ebp, dword [esp + 0x2c]
add esp, 0x18
mov esi, 0x8c
test eax, eax
je 0x531adb
mov byte [eax], 0x89
jmp 0x531adb
mov ebp, dword [esp + 0x14]
mov esi, 0x8c
cmp bp, si
jne 0x531aba
push 0
push 0x8b
push 0
push 1
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
push 0
push 2
push 0
push 0x8b
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
jmp 0x531adb
mov ebp, dword [esp + 0x14]
mov esi, 0x8c
cmp dword [esp + 0x18], 0
je 0x531b02
mov eax, dword [esp + 0x10]
shl eax, 2
push eax
push 0x8b
push dword [edi + 0x44]
push 0x8d
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
cmp bp, si
je 0x531b11
mov eax, 0x8e
cmp bp, ax
jne 0x531b47
push 0
push 2
push 0
push 1
push 0
push ebx
call fcn.00549aa0
add esp, 0x18
mov esi, eax
cmp dword [ebx], 0
jne 0x531b47
push 8
push ebx
call fcn.00540720
add esp, 8
test eax, eax
je 0x531b47
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 0x531d3f
cmp dword [ebx], 0
jne 0x531d3f
mov eax, dword [esp + 0x24]
lea eax, [eax*4 - 4]
push eax
push 0x8b
push 0
push 0x40
push 1
push ebx
call fcn.00540380
add esp, 0x18
test eax, eax
je 0x531d3f
mov byte [eax], 0xc7
jmp 0x531d3f
shl esi, 2
test ebp, ebp
je 0x531c36
push esi
push 0x40
push dword [esp + 0x24]
push 0x8d
push 0
push 0xb
push 0x62
push ebx
call fcn.0054b4d0
push dword [esp + 0x4c]
push 0x8d
push 0
push 1
push 0x20
push ebx
call fcn.0054b290
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.0054b290
add esp, 0x50
push 0
push 2
push dword [esp + 0x34]
push 0x8d
push 0x20
push ebx
call fcn.0054b290
mov ecx, dword [edi + 0x48]
add esp, 0x18
test ecx, ecx
je 0x531c1e
mov eax, ebp
shr eax, 1
push eax
push 0x40
push ecx
push 0x8d
push 0x20
push ebx
call fcn.0054b290
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 0x531ca6
push dword [esp + 0x1c]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0054b290
push esi
push 0x40
push 0
push 3
push 0
push 0xb
push 0x62
push ebx
call fcn.0054b4d0
mov ebp, dword [esp + 0x4c]
mov esi, 0x8c
add esp, 0x38
cmp bp, si
jne 0x531c90
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.0054b290
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.0054b290
add esp, 0x18
cmp dword [esp + 0x18], 0
je 0x531cdd
mov eax, dword [esp + 0x10]
shl eax, 2
push eax
push 0x8b
push dword [edi + 0x44]
push 0x8d
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
cmp bp, si
je 0x531cec
mov eax, 0x8e
cmp bp, ax
jne 0x531d22
push 0
push 2
push 0
push 1
push 0
push ebx
call fcn.00549aa0
add esp, 0x18
mov esi, eax
cmp dword [ebx], 0
jne 0x531d22
push 8
push ebx
call fcn.00540720
add esp, 8
test eax, eax
je 0x531d22
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 0x531d3f
push 0
push 0x40
push 0
push 0x8b
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
push 0x22
push ebx
call fcn.0054afd0
add esp, 8
test eax, eax
je 0x531d65
mov edx, dword [esp + 0x44]
test edx, edx
je 0x531d65
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.00543540
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 0x531f83
nop word [eax + eax]
cmp dword [ebp + 4], 0
je 0x531e20
cmp dword [ebx], 0
je 0x531da3
xor esi, esi
jmp 0x531df8
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x531db2
mov eax, dword [esi + 8]
cmp eax, dword [ebx + 0x4c]
je 0x531df8
push 0xc
push ebx
call fcn.00540720
mov esi, eax
add esp, 8
test esi, esi
je 0x531df8
mov dword [esi], 0
mov eax, dword [ebx + 0x4c]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x531dda
mov dword [eax], esi
jmp 0x531ddd
mov dword [ebx + 8], esi
push 2
push ebx
mov dword [ebx + 0x18], esi
call fcn.00540780
add esp, 8
test eax, eax
jne 0x531df3
xor esi, esi
jmp 0x531df8
mov word [eax], 0
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x531e20
nop
mov edx, dword [ecx]
test edx, edx
je 0x531e19
test esi, esi
je 0x531e19
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 0x531e00
mov ecx, dword [ebp + 0x10]
movzx eax, word [ecx]
add eax, 0xfffffffd
cmp eax, 0xa5
ja case.0x531e3b.4
movzx eax, byte [eax + 0x5323f4]
jmp dword [eax*4 + 0x5323b8]
push 0
push 0x8b
push 0
push 1
push 0x20
push ebx
call fcn.0054b290
push 4
push 0x40
push 0
push 0xb
push 0
push 0xb
push 0x60
push dword [edi]
call fcn.0054b4d0
push 0
push 1
push dword [edi + 0x24]
push 0x8d
push 0x20
push ebx
call fcn.0054b290
add esp, 0x50
jmp case.0x531e3b.4
push ebp
push edi
call fcn.00533f90
add esp, 8
jmp case.0x531e3b.4
push ebp
push edi
call fcn.00537450
add esp, 8
jmp case.0x531e3b.4
cmp dword [ebp + 0x1c], 0
mov ebx, dword [edi]
jne 0x531f31
mov esi, dword [ebp + 0x18]
push 0x23
push ebx
mov edi, dword [esi + 8]
call fcn.0054afd0
add esp, 8
test edi, edi
jne 0x531ee8
cmp dword [ebx], 0
mov edi, eax
jne 0x531efb
push 8
push ebx
call fcn.00540720
add esp, 8
test eax, eax
je 0x531efb
mov ecx, dword [esi + 0x10]
mov dword [eax + 4], ecx
mov dword [eax], edi
mov dword [esi + 0x10], eax
jmp 0x531efb
test eax, eax
je 0x531efb
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.00549aa0
mov edi, dword [esp + 0x90]
add esp, 0x18
test eax, eax
je 0x531f3d
test esi, esi
je 0x531f3d
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
jmp 0x531f3d
push dword [ebp + 8]
push edi
call fcn.0052e420
add esp, 8
push ebx
call fcn.0054b060
mov edx, dword [ebp + 0xc]
add esp, 4
mov esi, eax
test edx, edx
je 0x531f70
nop
mov ecx, dword [edx]
test ecx, ecx
je 0x531f69
test esi, esi
je 0x531f69
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 0x531f50
mov ebx, dword [esp + 0x40]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x531d90
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov dword [edi + 0x1c], eax
cmp dword [ebx], 0
jne 0x532398
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x531fa6
mov eax, dword [esi + 8]
cmp eax, dword [ebx + 0x4c]
je 0x532221
push 0xc
push ebx
call fcn.00540720
mov esi, eax
add esp, 8
test esi, esi
jne 0x5321ec
jmp 0x532221
push ebp
push edi
call fcn.0052c730
add esp, 8
jmp case.0x531e3b.4
push ebp
push edi
call fcn.0052e940
add esp, 8
jmp case.0x531e3b.4
mov eax, 0x81
push ebp
push edi
cmp word [ecx + 2], ax
jbe 0x531fc2
call fcn.0052e940
add esp, 8
jmp case.0x531e3b.4
push ebp
push edi
call fcn.005312c0
add esp, 8
jmp case.0x531e3b.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 0x532037
push ebp
push ecx
push edi
call fcn.0052ff00
push dword [ebp + 8]
push edi
call fcn.0052e940
add esp, 0x14
jmp case.0x531e3b.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.0052ca50
add esp, 0x10
jmp case.0x531e3b.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.0054b290
add esp, 0x18
cmp dword [edi + 0x78], 0
je 0x5320b0
push 0
push 0x8b
push 0
push 3
push 0x20
push ebx
call fcn.0054b290
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.0054b4d0
push 0
push 1
push dword [edi + 0x40]
push 0x8d
push 0x20
push ebx
call fcn.0054b290
add esp, 0x38
cmp dword [edi + 0x78], 0
je case.0x531e3b.4
push 0
push 3
push dword [edi + 0x44]
push 0x8d
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
jmp case.0x531e3b.4
push ebp
push edi
call fcn.00533870
add esp, 8
jmp case.0x531e3b.4
cmp dword [edi + 0x84], 0
jne 0x53213d
push 0xffffffffffffffff
push 0x40
push 0
push 1
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
mov esi, dword [edi + 0xc0]
push 0x22
push ebx
call fcn.0054afd0
add esp, 8
test esi, esi
jne 0x532186
cmp dword [ebx], 0
mov esi, eax
jne case.0x531e3b.4
push 8
push ebx
call fcn.00540720
add esp, 8
test eax, eax
je case.0x531e3b.4
mov ecx, dword [edi + 0xe0]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov dword [edi + 0xe0], eax
jmp case.0x531e3b.4
test eax, eax
je case.0x531e3b.4
mov ecx, dword [eax + 8]
and ecx, 0xfffffffd
mov dword [eax + 0xc], esi
or ecx, 1
mov dword [eax + 8], ecx
jmp case.0x531e3b.4
push ebx
call fcn.0054b060
mov edx, dword [ebp + 0xc]
add esp, 4
mov esi, eax
test edx, edx
je case.0x531e3b.4
mov ecx, dword [edx]
test ecx, ecx
je 0x5321d1
test esi, esi
je 0x5321d1
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 0x5321b8
jmp case.0x531e3b.4
push ebp
push edi
call fcn.005393f0
add esp, 8
jmp case.0x531e3b.4
mov dword [esi], 0
mov eax, dword [ebx + 0x4c]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x532203
mov dword [eax], esi
jmp 0x532206
mov dword [ebx + 8], esi
push 2
push ebx
mov dword [ebx + 0x18], esi
call fcn.00540780
add esp, 8
test eax, eax
jne 0x53221c
xor esi, esi
jmp 0x532221
mov word [eax], 0
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x532250
nop dword [eax]
mov ecx, dword [edx]
test ecx, ecx
je 0x532249
test esi, esi
je 0x532249
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 0x532230
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
test esi, esi
jns 0x532275
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 0x5322cd
test ebp, ebp
je 0x5322a6
mov eax, dword [esp + 0x38]
cmp word [eax], 0x7c
jne 0x53229b
push dword [esp + 0x1c]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0054b290
add esp, 0x18
mov eax, dword [esp + 0x2c]
mov ecx, 0x8d
jmp 0x5322cd
push dword [esp + 0x1c]
push 0x8d
push 0
push 3
push 0x20
push ebx
call fcn.0054b290
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.0054b290
mov ecx, dword [esp + 0x50]
add esp, 0x18
cmp word [ecx], 0x7c
je 0x5322fa
mov esi, dword [esp + 0x24]
lea edi, [ecx + 4]
jmp 0x531980
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x30]
add esi, 0xc
cmp dword [esp + 0x20], 0
mov dword [esi], 0
jne 0x53234a
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x24]
push 0
push 0x40
jge 0x53232c
lea eax, [eax*4 - 4]
push eax
push 0x8b
jmp 0x532337
neg eax
shl eax, 2
push eax
push 0x83
push 1
push ebx
call fcn.00549aa0
push eax
push esi
push ebx
call fcn.0052ae60
add esp, 0x24
push ebx
call fcn.0054b060
mov ebx, dword [esp + 0x40]
add esp, 4
mov edx, eax
test ebx, ebx
je 0x532380
nop dword [eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x532379
test edx, edx
je 0x532379
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 0x532360
push edi
call fcn.0053c280
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