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

Disassembly:
sub esp, 0x160
mov eax, dword [0x5923b4]
xor eax, esp
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x168]
push ebx
push ebp
mov ebp, dword [esp + 0x16c]
push esi
push edi
push ebp
mov dword [esp + 0x14], eax
call fcn.004bbe10
mov ecx, dword [ebp + 0x1b0]
mov esi, eax
add esp, 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
mov ecx, dword [ecx + 0x1cb8]
mov edi, dword [ecx + 0x548]
test esi, esi
je 0x524c12
movsx eax, byte [esi]
mov ecx, 0x14
cdq
idiv ecx
mov dword [esp + 0x24], edx
push 0xe
push ebp
call fcn.004bb4a0
add esp, 8
cmp eax, 0xdead
je 0x524c36
push 0x14
push ebp
call fcn.004bb4a0
add esp, 8
cmp eax, 0x2655
jne 0x524c65
test esi, esi
je 0x524c6d
cmp byte [esi], 0
je 0x524c6d
push 0
push str.demo
push esi
call fcn.00414c70
add esp, 0xc
test eax, eax
jne 0x524c6d
push 0x1b
push ebp
call fcn.004bb4a0
add esp, 8
cmp eax, 0x836a
jne 0x524c6d
mov dword [esp + 0x28], 1
mov eax, dword [ebp + 0x1b0]
mov eax, dword [eax + 0x1cb8]
mov ecx, dword [eax + 0x548]
test ecx, ecx
je 0x524e1d
cmp dword [eax + 0x560], 1
je 0x524e1d
mov esi, dword [eax + 0x544]
test esi, esi
je 0x524e2b
test edi, edi
je 0x524cc0
mov eax, dword [esi + 0x94]
cmp eax, dword [ecx + 4]
je 0x524cc0
mov esi, dword [esi + 0x9c]
test esi, esi
jne 0x524ca2
jmp 0x524e2b
test esi, esi
je 0x524e2b
test byte [esi + 0x98], 8
mov edi, dword [esi + 4]
mov dword [esp + 0x14], edi
je 0x524e2b
cmp dword [esi], 0
jne 0x524ce9
test edi, edi
je 0x524e2b
cmp dword [0x597b00], 0
jne 0x524d06
push dword [0x5913b0]
push ebp
call fcn.004bad00
add esp, 8
mov dword [0x597b00], eax
push dword [0x5913b4]
push ebp
call fcn.004bad00
mov edx, dword [esi + 0x90]
mov ebx, eax
mov ecx, dword [esp + 0x188]
mov eax, dword [0x5913b4]
mov edi, dword [esp + 0x18]
push 0x5913b4
mov ecx, dword [ecx + 0x34]
push ebx
mov dword [edx + 0x88], ecx
push dword [esi + 0x90]
mov dword [esp + 0x30], eax
push dword [esp + 0x190]
push edi
push ebp
call dword [esp + 0x34]
add esp, 0x20
test eax, eax
je 0x524dba
mov eax, dword [esp + 0x1c]
cmp dword [0x5913b4], eax
je 0x524db3
push dword [0x597b00]
call fcn.004bace0
push ebx
call fcn.004bace0
push dword [0x5913b0]
push ebp
call fcn.004bad00
push dword [0x5913b4]
mov dword [0x597b00], eax
push ebp
call fcn.004bad00
push 0x5913b4
mov ebx, eax
push ebx
push dword [esi + 0x90]
push dword [esp + 0x1a0]
push edi
push ebp
call dword [esp + 0x44]
add esp, 0x30
test eax, eax
je 0x524dba
xor eax, eax
jmp 0x5256c0
mov esi, dword [0x597b00]
xor edi, edi
cmp dword [0x5913b4], edi
jle 0x524e07
lea ebx, [ebx]
mov eax, edi
and eax, 0x80000001
jns 0x524dde
dec eax
or eax, 0xfffffffe
inc eax
jne 0x524de8
test edi, edi
je 0x524de8
mov byte [esi], 0x20
inc esi
movzx eax, byte [edi + ebx]
push eax
push str._02X
push esi
call fcn.00401741
inc edi
add esp, 0xc
add esi, 2
cmp edi, dword [0x5913b4]
jl 0x524dd0
push ebx
mov byte [esi], 0
call fcn.004bace0
mov eax, dword [0x597b00]
add esp, 4
jmp 0x5256c0
mov eax, dword [eax + 0x540]
test eax, eax
je 0x524e2b
mov dword [esp + 0x14], eax
push 0
push 8
push 0
push 0x597b1c
call fcn.00414af0
mov ebx, dword [esp + 0x18c]
add esp, 0x10
movdqa xmm0, xmmword [0x575650]
mov eax, ebx
cdq
and edx, 7
mov dword [esp + 0xcc], 8
movdqu xmmword [esp + 0x84], xmm0
mov dword [esp + 0x68], 5
movdqa xmm0, xmmword [0x575640]
lea ecx, [edx + eax]
mov dword [esp + 0x15c], 0xa
sar ecx, 3
mov dword [esp + 0x18], ecx
mov dword [esp + 0x94], 5
mov dword [esp + 0x6c], 3
mov dword [esp + 0x70], 0
mov dword [esp + 0xd8], 5
mov dword [esp + 0xdc], 6
mov dword [esp + 0xf8], 9
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 4
mov dword [esp + 0x7c], 1
mov dword [esp + 0x140], 2
mov dword [esp + 0xe0], 1
mov dword [esp + 0x144], 4
mov dword [esp + 0x3c], 9
mov dword [esp + 0x40], 8
mov dword [esp + 0xf0], 3
mov dword [esp + 0x44], 3
mov dword [esp + 0x130], 5
mov dword [esp + 0x134], 1
mov dword [esp + 0x148], 8
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], 4
mov dword [esp + 0x160], 3
mov dword [esp + 0x168], 1
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 8
mov dword [esp + 0x80], 0xa
mov dword [esp + 0x98], 0xb
mov dword [esp + 0xd4], 2
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], 9
mov dword [esp + 0x154], 1
mov dword [esp + 0x50], 1
mov dword [esp + 0x78], 7
mov dword [esp + 0x14c], 5
mov dword [esp + 0xf4], 8
mov dword [esp + 0x110], 0xa
mov dword [esp + 0x114], 8
mov dword [esp + 0x150], 0
mov dword [esp + 0x64], 0xa
mov dword [esp + 0x54], 2
mov dword [esp + 0x2c], 3
mov dword [esp + 0x138], 0
mov dword [esp + 0x158], 4
mov dword [esp + 0x13c], 0
mov dword [esp + 0x38], 0xb
mov dword [esp + 0xe8], 9
mov dword [esp + 0x58], 5
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], 0xb
mov dword [esp + 0xb0], 4
mov dword [esp + 0xd0], 4
mov dword [esp + 0xb4], 1
movdqu xmmword [esp + 0xbc], xmm0
mov dword [esp + 0x164], 5
mov dword [esp + 0xa8], 4
mov dword [esp + 0xac], 0
mov dword [esp + 0xa0], 1
mov dword [esp + 0x104], 2
mov dword [esp + 0x108], 0xa
mov dword [esp + 0x118], 7
mov dword [esp + 0xb8], 0xa
mov dword [esp + 0x11c], 1
mov eax, dword [ebp + 0x1b0]
mov dword [esp + 0x120], 0xb
mov dword [esp + 0x124], 0
mov dword [esp + 0xe4], 0
cmp dword [eax + 0xcf4], 0
mov dword [esp + 0x128], 3
mov dword [esp + 0x12c], 6
mov dword [esp + 0x10c], 3
mov dword [esp + 0xec], 4
mov dword [esp + 0x74], 1
jne 0x52518e
mov dword [eax + 0xcf4], 0x113e
mov eax, dword [ebp + 0x1b0]
push dword [eax + 0xcf4]
push ebp
call fcn.004bad00
mov ecx, dword [ebp + 0x1b0]
add esp, 8
mov dword [ecx + 0xcf0], eax
mov ecx, dword [esp + 0x18]
mov eax, ebx
and eax, 0x80000007
jns 0x52519c
dec eax
or eax, 0xfffffff8
inc eax
je 0x525210
mov eax, dword [ebp + 0x1b0]
lea esi, [ebx + 8]
inc ecx
mov dword [esp + 0x18], ecx
mov edi, dword [eax + 0xcf0]
cmp dword [eax + 0xcf4], esi
jge 0x5251eb
push edi
call fcn.004bace0
mov eax, dword [ebp + 0x1b0]
mov dword [eax + 0xcf4], esi
mov esi, dword [ebp + 0x1b0]
push dword [esi + 0xcf4]
call fcn.00444a76
mov edi, eax
add esp, 8
mov dword [esi + 0xcf0], edi
lea esi, [ebx + 8]
test edi, edi
je 0x524db3
push 0
push esi
push 0
push edi
call fcn.00414af0
push 0
push ebx
push dword [esp + 0x28]
push edi
call fcn.00414a10
add esp, 0x20
jmp 0x525214
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x18], ecx
jle 0x52558a
mov eax, dword [esp + 0x24]
lea ebx, [esp + 0x2c]
shl eax, 4
lea esi, [edi + 2]
add ebx, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
lea esp, [esp]
mov al, byte [esi - 2]
xor byte [0x597b1c], al
mov al, byte [esi - 1]
xor byte [0x597b1d], al
mov al, byte [esi]
xor byte [0x597b1e], al
mov al, byte [esi + 1]
xor byte [0x597b1f], al
mov al, byte [esi + 2]
xor byte [0x597b20], al
mov al, byte [esi + 3]
xor byte [0x597b21], al
mov al, byte [esi + 4]
xor byte [0x597b22], al
mov al, byte [esi + 5]
xor byte [0x597b23], al
test ecx, ecx
jne 0x5254cb
cmp dword [esp + 0x14], ecx
jne 0x5253fc
push 1
push ebp
call fcn.004ce010
add esp, 8
test eax, eax
je 0x5253fc
mov eax, dword [ebp + 0x1b0]
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
mov ecx, dword [eax + 0x1cb8]
mov eax, dword [esp + 0x10]
movzx edx, byte [edi + ecx + 0x530]
mov esi, dword [eax + 4]
movzx eax, byte [ebx + ecx + 0x530]
shl edx, 8
xor edx, eax
movzx eax, byte [esi + ecx + 0x530]
mov esi, dword [esp + 0x10]
shl edx, 8
xor edx, eax
shl edx, 8
mov eax, dword [esi]
mov esi, 0x597b1d
movzx eax, byte [eax + ecx + 0x530]
xor edx, eax
mov eax, dword [esp + 0x180]
xor edx, dword [eax + 4]
xor byte [0x597b1c], dl
cmp edx, 0xff
jg 0x52531f
cmp edx, 0xffffff00
jge 0x52532f
mov eax, edx
mov esi, 0x597b1e
sar eax, 8
xor byte [0x597b1d], al
cmp edx, 0x7d00
jg 0x52533f
cmp edx, 0xffff8300
jge 0x525347
mov eax, edx
sar eax, 0x10
xor byte [esi], al
inc esi
cmp edx, 0xf42400
jg 0x525357
cmp edx, 0xff0bdc00
jge 0x52535d
sar edx, 0x18
xor byte [esi], dl
inc esi
mov eax, dword [ebp + 0x1b0]
mov ecx, dword [eax + 0x1cb8]
movzx eax, byte [ecx + ebx + 0x530]
movzx edx, byte [ecx + edi + 0x530]
mov ebx, dword [esp + 0x10]
shl edx, 8
xor edx, eax
shl edx, 8
mov eax, dword [ebx + 4]
movzx eax, byte [ecx + eax + 0x530]
xor edx, eax
mov eax, dword [ebx]
shl edx, 8
movzx eax, byte [ecx + eax + 0x530]
xor edx, eax
mov eax, dword [esp + 0x180]
xor edx, dword [eax + 8]
xor byte [esi], dl
inc esi
cmp edx, 0xff
jg 0x5253be
cmp edx, 0xffffff00
jge 0x5253c6
mov eax, edx
sar eax, 8
xor byte [esi], al
inc esi
cmp edx, 0x7d00
jg 0x5253d6
cmp edx, 0xffff8300
jge 0x5253de
mov eax, edx
sar eax, 0x10
xor byte [esi], al
inc esi
cmp edx, 0xf42400
jg 0x5253f2
cmp edx, 0xff0bdc00
jge 0x5254c7
sar edx, 0x18
xor byte [esi], dl
jmp 0x5254c7
xor esi, esi
mov edi, edi
mov ebx, dword [esp + 0x180]
mov edi, esi
and edi, 3
mov edx, esi
shr edx, 2
mov eax, 0xff
push 1
push ebp
lea ecx, [edi*8]
mov ebx, dword [ebx + edx*4 + 4]
shl eax, cl
and ebx, eax
mov eax, dword [esp + 0x2c]
shr ebx, cl
mov ecx, dword [ebp + 0x1b0]
lea eax, [edi + eax*4]
mov edx, dword [esp + eax*4 + 0x34]
mov eax, dword [ecx + 0x1cb8]
xor bl, byte [edx + eax + 0x530]
xor byte [esi + 0x597b1c], bl
call fcn.004ce010
add esp, 8
test eax, eax
jne 0x5254bd
movzx ecx, byte [esi + 0x597b1c]
movsx edx, cl
and edx, 1
movsx eax, cl
and eax, 2
shl edx, 7
shl eax, 5
or dl, al
movsx eax, cl
and eax, 4
shl eax, 3
or dl, al
movsx eax, cl
and eax, 8
add eax, eax
or dl, al
movsx eax, cl
and eax, 0x10
shr eax, 1
or dl, al
movsx eax, cl
and eax, 0x20
shr eax, 3
or dl, al
movsx eax, cl
and eax, 0x40
shr eax, 5
or dl, al
test cl, 0x80
mov eax, 0
setne al
or dl, al
mov byte [esi + 0x597b1c], dl
inc esi
cmp esi, 8
jl 0x525400
mov esi, dword [esp + 0x20]
push 1
push ebp
call fcn.004ce010
add esp, 8
test eax, eax
jne 0x5254ef
cmp dword [esp + 0x28], eax
jne 0x5254ef
push 0x597b1c
call fcn.00525960
add esp, 4
jmp 0x52556c
mov dl, byte [0x597b20]
mov ch, byte [0x597b1c]
mov al, dl
add al, byte [0x597b23]
mov bl, byte [0x597b1f]
mov dh, byte [0x597b1d]
mov bh, byte [0x597b1e]
mov byte [0x597b1c], al
add dl, bh
mov al, byte [0x597b21]
not dl
add al, bl
mov byte [0x597b1e], dl
add bl, byte [0x597b22]
mov byte [0x597b1d], al
mov al, ch
add al, byte [0x597b21]
add ch, byte [0x597b23]
mov byte [0x597b1f], al
mov al, dh
add al, byte [0x597b22]
add bh, dh
not al
mov byte [0x597b20], bl
mov byte [0x597b21], al
mov byte [0x597b22], ch
mov byte [0x597b23], bh
mov ecx, dword [esp + 0x1c]
add esi, 8
mov ebx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x18]
jl 0x525240
mov ebx, dword [esp + 0x184]
cmp ebx, 0x66d8b337
jne 0x525673
movzx ecx, byte [0x597b23]
movsx ebx, cl
and ebx, 1
movsx eax, cl
and eax, 2
shl ebx, 7
shl eax, 5
or bl, al
movsx eax, cl
and eax, 4
shl eax, 3
or bl, al
movsx eax, cl
and eax, 8
add eax, eax
or bl, al
movsx eax, cl
and eax, 0x10
shr eax, 1
or bl, al
movsx eax, cl
and eax, 0x20
shr eax, 3
or bl, al
movsx eax, cl
and eax, 0x40
shr eax, 5
or bl, al
test cl, 0x80
movzx ecx, byte [0x597b22]
mov eax, 0
setne al
movsx edx, cl
or bl, al
mov word [0x597b22], 0
and edx, 1
movsx eax, cl
and eax, 2
shl edx, 7
shl eax, 5
or dl, al
movsx eax, cl
and eax, 4
shl eax, 3
or dl, al
movsx eax, cl
and eax, 8
add eax, eax
or dl, al
movsx eax, cl
and eax, 0x10
shr eax, 1
or dl, al
movsx eax, cl
and eax, 0x20
shr eax, 3
or dl, al
movsx eax, cl
and eax, 0x40
shr eax, 5
or dl, al
test cl, 0x80
mov eax, 0
setne al
add byte [0x597b1c], bl
mov ebx, dword [esp + 0x184]
or dl, al
add byte [0x597b1d], dl
cmp dword [esp + 0x14], 0
je 0x5256b1
cmp ebx, 0x66d8b337
mov edi, 8
mov eax, 6
cmove edi, eax
xor esi, esi
test edi, edi
jle 0x5256b1
mov ebx, dword [esp + 0x14]
push esi
lea eax, [esi + 0x597b1c]
push eax
push ebp
call ebx
inc esi
add esp, 0xc
cmp esi, edi
jl 0x525697
mov ebx, dword [esp + 0x184]
push ebx
push 0x597b1c
push ebp
call fcn.00523580
add esp, 0xc
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424604
add esp, 0x160
ret