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

Disassembly:
sub esp, 0x94
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
shl edx, 6
mov eax, dword [ecx + 0x20]
push ebx
mov dword [esp + 0x18], eax
lea ebx, [edx + ecx + 0x24]
xor eax, eax
push ebp
mov al, byte [ebx + 0x28]
mov ebp, dword [ecx]
push esi
push edi
lea edx, [eax*8]
mov edi, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ecx + 0xc]
push edi
mov dword [esp + 0x54], edi
lea eax, [eax + edx*8 + 8]
mov dword [esp + 0x30], eax
mov edx, dword [eax + 0x18]
mov eax, dword [ebx]
mov esi, eax
mov dword [esp + 0x24], edx
shr eax, 0x17
and eax, 1
shr esi, 0x19
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 8]
and esi, 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], esi
call fcn.00510c10
push edi
mov dword [esp + 0x40], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
call fcn.00510c10
mov dword [ebx + 0x20], eax
mov dword [esp + 0x50], eax
mov al, byte [ebx + 0x28]
add esp, 8
test al, al
jbe 0x527bf9
mov ecx, dword [esp + 0x2c]
test byte [ecx + 0x15], 8
je 0x527bf9
mov edx, dword [ebp + 0x48]
inc edx
mov eax, edx
mov dword [ebp + 0x48], edx
push eax
push 0
push 0x31
push edi
mov dword [ebx + 0xc], eax
call fcn.005107e0
add esp, 0x10
mov ecx, dword [ebx]
test ecx, 0x8000000
je 0x527dea
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov esi, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
lea eax, [esi + 2]
push eax
push ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], eax
call fcn.005136b0
mov ecx, dword [ebp + 0x54]
add esp, 8
inc ecx
cmp esi, 1
mov dword [esp + 0x28], eax
mov dword [ebp + 0x54], ecx
mov dword [esp + 0x14], 1
jl 0x527cb6
mov ecx, dword [esp + 0x1c]
xor esi, esi
test ecx, ecx
jle 0x527ca1
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
cmp dword [eax], edx
je 0x527c6b
inc esi
add eax, 8
cmp esi, ecx
jl 0x527c5d
jmp 0x527ca1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx + 1]
mov edx, dword [esp + 0x18]
lea ecx, [esi + esi*2]
push eax
mov eax, dword [edx + ecx*4 + 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x14]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*8]
mov ecx, dword [eax + 0xc]
push ecx
push ebp
call fcn.00510ee0
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp esi, ecx
je 0x527cb6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x527c4b
mov eax, dword [ebp + 0x54]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
dec eax
mov dword [ebp + 0x54], eax
mov eax, dword [esi + 0x14]
push edx
push eax
push 0x31
push edi
call fcn.005107e0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
inc ecx
dec edx
push ecx
push edx
push 0x31
push edi
call fcn.005107e0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
neg eax
mov edx, dword [esp + 0x48]
sbb eax, eax
and al, 0xf7
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push 0x68
push edi
call fcn.0050fb10
mov eax, dword [esp + 0x58]
add esp, 0x3c
test eax, eax
mov dword [esi + 0x1c], 0
jle 0x527d71
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x18], eax
lea esi, [edx + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
cmp byte [edx], 0
je 0x527d58
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x14]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
push eax
push ebx
call fcn.005288a0
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add edx, 8
add esi, 0xc
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jne 0x527d36
mov esi, dword [esp + 0x20]
push edi
mov byte [ebx + 0x29], 1
mov dword [ebx + 0x2c], esi
call fcn.00510c90
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
jl 0x527de0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00528b80
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x527dc8
mov edx, dword [esp + 0x28]
push edx
push esi
push 0xc
push edi
call fcn.005107e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push 0x34
push edi
call fcn.005107e0
add esp, 0x20
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push edx
push eax
push ebp
call fcn.00513700
add esp, 0xc
jmp 0x5286d4
mov dword [esp + 0x10], 0
jmp 0x527dc8
test ch, 0x10
je 0x527ea1
push ebp
call fcn.00513590
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
push 0
push 3
mov esi, eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x4c], esi
call fcn.00527710
push esi
push ebx
push eax
push ebp
call fcn.00528940
mov esi, eax
mov eax, dword [ebx + 0x1c]
push eax
push esi
push 0x27
push edi
mov dword [esp + 0x54], eax
call fcn.005107e0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x60]
add esp, 0x40
push esi
push edx
push eax
push 0x2f
push edi
call fcn.0050fb50
mov ecx, dword [esp + 0x38]
mov eax, 1
add esp, 0x14
cmp dword [ecx + 0xc], eax
jne 0x527e97
mov ecx, dword [esp + 0x40]
test ecx, ecx
jl 0x527e97
push esi
push ecx
push 0x34
push edi
mov dword [esp + 0x20], eax
call fcn.005107e0
add esp, 0x10
mov edx, dword [esp + 0x2c]
push edx
push ebp
call fcn.005135c0
add esp, 8
mov byte [ebx + 0x29], 0x19
jmp 0x5286d4
mov dword [esp + 0x10], 0
jmp 0x527e80
test ch, 0x20
je 0x528108
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x20]
push 0
push 0x24
push eax
mov eax, dword [esp + 0x30]
push ecx
push 0xffffffffffffffff
push edx
push eax
mov dword [esp + 0x30], 0x19
mov dword [esp + 0x34], 0
call fcn.00527710
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
push 0
push 0x18
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push 0xffffffffffffffff
push eax
push ecx
call fcn.00527710
add esp, 0x38
mov dword [esp + 0x34], eax
test esi, esi
je 0x527f23
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x527fa0
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x20], 0x79
mov edx, dword [eax + 0xc]
mov byte [esp + 0x21], 0x38
push edx
push ebp
mov byte [esp + 0x2a], 0x59
mov byte [esp + 0x2b], 0x6d
mov dword [esp + 0x38], eax
call fcn.00512e70
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x40]
xor edx, edx
push ecx
mov dl, byte [eax]
xor ecx, ecx
mov cl, byte [esp + edx - 0x16]
push ecx
push edi
call fcn.0050fb50
mov edx, dword [esp + 0x5c]
push 1
push edx
push ebp
call fcn.00512d60
mov eax, dword [esp + 0x70]
push eax
push ebp
call fcn.005135c0
mov ecx, dword [esp + 0x64]
push ecx
push ebx
call fcn.005288a0
add esp, 0x3c
jmp 0x527fc0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, esi
push edx
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xffffffbf
add ecx, 0x78
push ecx
push edi
call fcn.005107e0
add esp, 0x10
mov eax, dword [esp + 0x34]
test eax, eax
je 0x528022
mov ecx, dword [ebp + 0x48]
mov edx, eax
inc ecx
mov eax, dword [edx]
mov dword [ebp + 0x48], ecx
mov dword [esp + 0x2c], eax
push ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], ecx
push eax
push ebp
call fcn.00510ee0
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov al, byte [ecx]
cmp al, 0x4c
je 0x528005
cmp al, 0x4a
je 0x528005
mov eax, esi
neg eax
sbb eax, eax
and eax, 2
add eax, 0x4a
jmp 0x528010
mov eax, esi
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0x4d
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
push edx
push ebx
call fcn.005288a0
add esp, 8
push edi
call fcn.00510c90
mov ecx, esi
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x2c], edx
neg ecx
sbb cl, cl
and cl, 0xc7
add cl, 0x6b
test eax, eax
mov byte [ebx + 0x29], cl
jne 0x52805b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x52805b
mov eax, 1
jmp 0x52805d
xor eax, eax
mov byte [ebx + 0x2a], al
mov eax, dword [esp + 0x40]
test eax, eax
jl 0x5280fb
mov eax, dword [esp + 0x24]
push eax
call fcn.00528b80
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x528090
cmp dword [esp + 0x14], 0x19
je 0x5286d4
mov edi, dword [esp + 0x50]
push ebp
call fcn.00513590
mov ecx, dword [esp + 0x24]
mov esi, eax
push esi
push ecx
push 0x29
push edi
call fcn.005107e0
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 0x19
je 0x5280d3
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push edx
push eax
push ecx
push edi
call fcn.0050fb50
push 0x6b
push edi
call fcn.00510800
add esp, 0x1c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5280ec
mov edx, dword [esp + 0x40]
push esi
push edx
push 0x34
push edi
call fcn.005107e0
add esp, 0x10
push esi
push ebp
call fcn.005135c0
add esp, 8
jmp 0x5286d4
mov dword [esp + 0x10], 0
jmp 0x528081
test ecx, 0x30000
je 0x528556
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x6c], 0x78
mov edx, dword [edx + 8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], 0x37
mov edx, dword [edx + esi*4]
mov dword [esp + 0x74], 0x79
mov dword [esp + 0x18], edx
mov dl, byte [esp + 0xb0]
test dl, 1
mov dword [esp + 0x78], 0x59
mov dword [esp + 0x7c], 0x6d
mov dword [esp + 0x80], 0x38
mov dword [esp + 0x58], 0x19
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x60], 0x2a
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
je 0x5281ba
test ecx, 0x1000000
je 0x5281ba
mov edx, dword [esp + 0x34]
cmp dword [edx + 4], esi
jle 0x5281ba
mov eax, 1
mov dword [esp + 0x3c], eax
test ecx, 0x100000
je 0x5281f9
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0x1c]
push 0x18
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.00527710
mov dword [esp + 0x44], eax
add esp, 0x1c
mov eax, 1
test dword [ebx], 0x200000
je 0x528238
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0x1c]
push 0x24
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.00527710
mov dword [esp + 0x54], eax
add esp, 0x1c
mov eax, 1
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0xbc]
push eax
push ecx
push edx
push ebx
push ebp
call fcn.00528a60
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
add esp, 0x18
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x14], eax
xor eax, eax
cmp byte [edx + esi], 0
mov ecx, dword [esp + 0x4c]
sete al
cmp ecx, eax
jne 0x52828d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
jmp 0x528295
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
xor edx, edx
cmp eax, edx
je 0x5282a5
test byte [eax + 0x10], 0x28
mov dword [esp + 0x44], edx
je 0x5282ad
mov dword [esp + 0x44], 1
cmp ecx, edx
je 0x5282bb
test byte [ecx + 0x10], 0x28
mov dword [esp + 0x2c], edx
je 0x5282c3
mov dword [esp + 0x2c], 1
cmp eax, edx
jne 0x5282cf
cmp esi, edx
mov dword [esp + 0x18], edx
jle 0x5282d7
mov dword [esp + 0x18], 1
cmp eax, edx
mov dword [esp + 0x30], esi
je 0x52832e
mov eax, dword [ebp + 0x54]
cmp ecx, edx
mov dword [esp + 0x3c], eax
je 0x5282ee
inc eax
mov dword [ebp + 0x54], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
lea eax, [ecx + esi]
push eax
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
push ecx
push ebp
call fcn.00510ee0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
push eax
lea eax, [ecx + esi]
mov dword [ebp + 0x54], edx
push eax
push 0x46
push edi
call fcn.005107e0
lea edx, [esi + 1]
add esp, 0x1c
mov dword [esp + 0x30], edx
jmp 0x52835f
cmp dword [esp + 0x3c], edx
je 0x52835f
mov eax, dword [esp + 0x10]
add eax, esi
push eax
push 0
push 0x75
push edi
call fcn.005107e0
lea ecx, [esi + 1]
add esp, 0x10
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
push ebp
call fcn.00528900
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0xfffffffffffffff2
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x38]
push edx
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x70]
lea ecx, [eax + edx*2]
mov edx, dword [esp + ecx*4 + 0x88]
push edx
push edi
call fcn.0050fb10
mov eax, dword [esp + 0x54]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x30], esi
je 0x528403
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add eax, esi
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push eax
push ebp
call fcn.00510ee0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ecx
lea eax, [edx + esi]
push eax
push 0x46
push edi
call fcn.005107e0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
lea eax, [esi + 1]
push ecx
push eax
push edx
push ebp
call fcn.00528900
lea eax, [esi + 1]
add esp, 0x2c
mov dword [esp + 0x30], eax
push edi
call fcn.00510c90
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x52841f
test esi, esi
jne 0x52841f
xor eax, eax
jmp 0x528424
mov eax, 1
mov ecx, dword [esp + 0x4c]
inc ecx
imul ecx, eax
mov eax, dword [esp + ecx*4 + 0x58]
cmp eax, 0x19
je 0x528469
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 0xfffffffffffffff2
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push eax
push edi
call fcn.0050fb10
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
cmp eax, edx
setne al
push eax
push edi
call fcn.00510800
add esp, 0x24
push ebp
call fcn.00513590
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
add esp, 4
test eax, 0x300000
je 0x5284a7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push esi
push edx
push 3
push edi
call fcn.0050fb50
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x46
push edi
call fcn.005107e0
add esp, 0x24
mov edx, dword [esp + 0x38]
push edx
push ebx
call fcn.005288a0
mov eax, dword [esp + 0x30]
push eax
push ebx
call fcn.005288a0
mov eax, dword [esp + 0x50]
add esp, 0x10
test eax, eax
jl 0x5284d7
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00528b80
add esp, 4
jmp 0x5284d9
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x5284e9
test eax, eax
je 0x52852b
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push edx
push 0x3a
push edi
call fcn.005107e0
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
push esi
je 0x528519
mov eax, dword [esp + 0x44]
push eax
push 0x34
push edi
call fcn.005107e0
add esp, 0x10
jmp 0x52852f
mov ecx, dword [esp + 0x24]
push ecx
push 5
push edi
call fcn.005107e0
add esp, 0x10
jmp 0x52852f
mov esi, dword [esp + 0x14]
push esi
push ebp
call fcn.005135c0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [ebx + 0x2c], eax
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6b
mov byte [ebx + 0x29], dl
jmp 0x5286d4
test ecx, 0x10000000
je 0x5286a8
mov eax, dword [ebx + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x3c], ecx
jl 0x528590
mov edx, dword [esp + 0x24]
mov ecx, 1
cmp dword [edx + 0xc], ecx
jne 0x528590
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jmp 0x5285b0
push ebp
mov dword [esp + 0x14], 0
call fcn.00513590
push eax
push 0
push 0x75
push edi
mov dword [esp + 0x2c], eax
call fcn.005107e0
add esp, 0x14
mov esi, dword [esp + 0x2c]
mov eax, 1
mov word [esp + 0x64], ax
mov word [esp + 0x66], ax
mov eax, dword [esp + 0x3c]
mov ecx, 0xe
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
xor edi, edi
test ecx, ecx
jle 0x528625
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 8]
cmp ecx, eax
je 0x5285f1
cmp word [esi + 0x10], 0x200
jne 0x528618
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
push ecx
push 0x38
push 0
lea eax, [esp + 0x70]
push edx
push eax
push ebp
call fcn.005251c0
add esp, 0x18
test eax, eax
je 0x528618
push eax
call fcn.00528cd0
add esp, 4
mov ecx, dword [esp + 0x3c]
inc edi
add esi, 0x28
cmp edi, dword [ecx + 0xc]
jl 0x5285de
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
push edx
push edi
call fcn.00510c70
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x528694
push ebp
call fcn.00513590
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x3c]
push esi
push eax
push ecx
push 0x33
push edi
call fcn.0050fb50
mov edx, dword [esp + 0x38]
push esi
push edx
push 5
push edi
mov dword [esp + 0x70], eax
call fcn.005107e0
push esi
push ebp
call fcn.005135c0
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x78]
add esp, 0x30
mov byte [ebx + 0x29], 0x61
mov dword [ebx + 0x30], eax
push ecx
push ebx
call fcn.005288a0
add esp, 8
jmp 0x5286d4
mov ecx, dword [esp + 0x54]
mov byte [ebx + 0x29], 0x19
push ecx
push ebx
call fcn.005288a0
add esp, 8
jmp 0x5286d4
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x78
push edi
mov byte [ebx + 0x29], 0x6b
mov dword [ebx + 0x2c], eax
call fcn.005107e0
add esp, 0x10
inc eax
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x2a], 1
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [esi + 4]
push ecx
call fcn.00525d00
mov edi, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
not edx
mov esi, dword [esi + 0x14]
and edi, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc0], edi
not eax
and ecx, eax
mov eax, dword [edx + 0xc]
add esp, 8
xor edi, edi
test eax, eax
mov dword [esp + 0xb4], ecx
jle 0x528793
mov dword [esp + 0x2c], eax
test byte [esi + 0x12], 6
jne 0x528785
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
and eax, ecx
mov ecx, dword [esi + 0x24]
and ecx, edx
or eax, ecx
jne 0x528785
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi]
test ecx, ecx
je 0x528757
mov cl, byte [eax + 2]
and cl, 1
cmp cl, 1
jne 0x528785
mov edx, dword [esp + 0x48]
mov ecx, dword [ebp + 0x54]
push 8
push edx
add ecx, edi
push eax
push ebp
mov dword [ebp + 0x54], ecx
call fcn.00512fd0
mov ecx, dword [ebp + 0x54]
add esp, 0x10
sub ecx, edi
mov edi, 1
mov dword [ebp + 0x54], ecx
mov al, byte [esi + 0x12]
or al, 4
mov byte [esi + 0x12], al
mov eax, dword [esp + 0x2c]
add esi, 0x28
dec eax
mov dword [esp + 0x2c], eax
jne 0x528721
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x52882c
mov esi, dword [esp + 0x50]
push esi
call fcn.00510c90
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0xc]
push eax
push 1
push 0x31
push esi
call fcn.005107e0
mov ecx, dword [ebx + 0x10]
push ecx
push ebp
call fcn.00523a10
mov edx, dword [ebx + 0x14]
push edx
push ebp
call fcn.00523a10
mov eax, dword [esp + 0x48]
add esp, 0x24
mov ecx, eax
xor edi, edi
mov esi, dword [eax + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
jle 0x52882c
test byte [esi + 0x12], 6
jne 0x52881f
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
and eax, ecx
mov ecx, dword [esi + 0x24]
and ecx, edx
or eax, ecx
jne 0x52881f
mov edx, dword [esp + 0x48]
mov eax, dword [esi]
push 8
push edx
push eax
push ebp
call fcn.00512fd0
mov al, byte [esi + 0x12]
add esp, 0x10
or al, 4
mov byte [esi + 0x12], al
mov ecx, dword [esp + 0x24]
inc edi
add esi, 0x28
cmp edi, dword [ecx + 0xc]
jl 0x5287e2
mov edi, dword [esp + 0x40]
test edi, edi
jl 0x528882
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x528882
push ebp
call fcn.00513590
mov esi, eax
mov eax, dword [ebx]
add esp, 4
test eax, 0x8000000
push esi
je 0x52885a
mov edx, dword [esp + 0x24]
push edx
push 0xc
jmp 0x528861
mov eax, dword [esp + 0x24]
push eax
push 0x29
mov ebx, dword [esp + 0x5c]
push ebx
call fcn.005107e0
add esp, 0x10
push esi
push edi
push 0x34
push ebx
call fcn.005107e0
push esi
push ebp
call fcn.005135c0
add esp, 0x18
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret