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

Disassembly:
sub esp, 0x120
mov eax, dword [0x634384]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x128]
xor cl, cl
mov dword [esp + 0x24], eax
xor dl, dl
mov eax, dword [esp + 0x134]
push ebx
mov ebx, dword [esp + 0x128]
mov dword [esp + 0x2c], eax
xor al, al
push ebp
mov ebp, dword [esp + 0x144]
push esi
mov esi, dword [esp + 0x138]
mov byte [esp + 0xf], al
mov byte [esp + 0xe], al
xor eax, eax
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x60], eax
mov dword [esp + 0x24], esi
push edi
mov edi, dword [esp + 0x140]
lea eax, [ecx + esi]
mov esi, eax
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x20], ebp
lea eax, [esi - 1]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x1b], dl
mov dword [esp + 0x3c], esi
test ebx, ebx
jne 0x5333fe
cmp dword [esp + 0x34], ebx
jne 0x5333fe
test eax, eax
jne 0x5333fe
cmp edi, 0xfffffc19
jne 0x5333fe
cmp ecx, edi
jne 0x5333fe
push eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.00526040
add esp, 0x1c
jmp 0x5341ba
mov edx, dword [esp + 0x148]
test edx, 0xe20f5a6f
je 0x533417
mov eax, 0xfffffffd
jmp 0x5341ba
test ebx, ebx
je 0x5341b5
test eax, eax
je 0x5341b5
mov eax, dword [esp + 0x150]
test ebp, ebp
jne 0x53343a
test eax, eax
jg 0x5341b5
test eax, eax
jns 0x533448
mov eax, 0xfffffff1
jmp 0x5341ba
test edi, edi
jns 0x533456
mov eax, 0xffffffe0
jmp 0x5341ba
test ecx, ecx
js 0x5341ae
cmp ecx, edi
jg 0x5341ae
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x533488
cmp ecx, 0x45524350
mov eax, 0xfffffffc
mov edx, 0xffffffe3
cmove eax, edx
jmp 0x5341ba
test byte [ebx + 0xc], 1
jne 0x533498
mov eax, 0xffffffe4
jmp 0x5341ba
mov ecx, dword [ebx + 8]
mov eax, 0
and ecx, 0x800
mov dword [esp + 0x54], ecx
setne al
mov dword [esp + 0x30], eax
mov dword [esp + 0xc0], eax
test edx, 0x8000000
je 0x5334c7
mov eax, 2
jmp 0x5334cf
mov eax, edx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xfc], eax
test ecx, ecx
je 0x53354e
test edx, 0x2000
jne 0x53354e
lea eax, [esp + 0x24]
push eax
push edi
push dword [esp + 0x30]
call fcn.00535a10
add esp, 0xc
test eax, eax
je 0x53352e
cmp dword [esp + 0x150], 2
jl 0x53350c
mov ecx, dword [esp + 0x24]
mov dword [ebp], ecx
mov dword [ebp + 4], eax
cmp eax, 5
jg 0x533524
cmp dword [esp + 0xfc], 1
mov eax, 0xffffffe7
jg 0x5341ba
mov eax, 0xfffffff6
jmp 0x5341ba
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x53354e
cmp eax, edi
jge 0x53354e
mov eax, esi
mov al, byte [eax]
and al, 0xc0
cmp al, 0x80
jne 0x53354e
mov eax, 0xfffffff5
jmp 0x5341ba
movzx eax, word [ebx + 0x22]
mov ecx, 0x989680
movzx ebp, word [ebx + 0x24]
add eax, ebx
mov dword [esp + 0xa4], eax
mov edx, ecx
movzx eax, word [ebx + 0x26]
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x48], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x11c], 0
mov dword [esp + 0x24], ebx
test eax, eax
je 0x5335eb
mov ebx, dword [eax]
test bl, 1
je 0x5335b2
mov ebx, dword [eax + 4]
mov dword [esp + 0x48], ebx
mov ebx, dword [eax]
test bl, 2
je 0x5335be
mov ecx, dword [eax + 8]
mov dword [esp + 0x78], ecx
test bl, 0x10
je 0x5335ca
mov edx, dword [eax + 0x14]
mov dword [esp + 0x7c], edx
test bl, 4
je 0x5335dd
mov eax, dword [eax + 0xc]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x34]
test bl, 8
je 0x5335e7
mov ebx, dword [eax + 0x10]
jmp 0x5335eb
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0xc]
test esi, 0x2000
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x3c]
je 0x533612
mov eax, dword [eax + 0x10]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
test dword [esp + 0x2c], 0x4000
je 0x533628
mov eax, dword [eax + 0x14]
cmp eax, edx
cmovb edx, eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x1c]
test ebx, ebx
mov ecx, 0x5c93d8
mov dword [esp + 0xa0], 0
cmovne ecx, ebx
mov dword [esp + 0xd8], 0
mov dword [esp + 0x124], 0
mov eax, dword [edx + 8]
mov dword [esp + 0x58], eax
or eax, dword [esp + 0x148]
mov dword [esp + 0x3c], eax
movzx eax, word [edx + 0x26]
imul ebp, eax
movzx eax, word [edx + 0x22]
mov dword [esp + 0x120], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0xac], ecx
add ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x108], eax
add ebp, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xe4], ebp
mov ebp, edx
mov dword [esp + 0xe8], ebp
lea eax, [edx + edi]
mov edi, dword [esp + 0x58]
mov ebx, eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x148]
mov eax, edi
shr eax, 5
and eax, 1
mov dword [esp + 0xec], ebx
mov dword [esp + 0xcc], eax
mov eax, edi
shr eax, 0x1d
and eax, 1
mov dword [esp + 0xc8], eax
mov eax, edi
shr eax, 0x19
and eax, 1
mov dword [esp + 0xc4], eax
mov eax, edx
shr eax, 7
and eax, 1
mov dword [esp + 0xb8], eax
mov eax, edx
shr eax, 8
and eax, 1
mov dword [esp + 0xbc], eax
mov eax, edx
shr eax, 0xa
and eax, 1
mov dword [esp + 0xd0], eax
mov eax, edx
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x2c]
shr eax, 0xc
and eax, 1
mov dword [esp + 0xe0], eax
lea eax, [ecx + 0x100]
mov dword [esp + 0xb0], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0xb4], eax
mov eax, edx
and eax, 0x1800000
je 0x5337f0
cmp eax, 0x800000
je 0x5337e3
cmp eax, 0x1000000
jne 0x533841
mov dword [esp + 0xdc], 0
test edx, 0x700000
mov eax, edx
cmove eax, edi
and eax, 0x700000
cmp eax, 0x300000
ja 0x533833
je 0x533810
test eax, eax
je 0x5337c0
cmp eax, 0x100000
je 0x533809
cmp eax, 0x200000
jne 0x533841
mov eax, 0xa
xor ecx, ecx
mov byte [esp + 0xa8], al
mov dword [esp + 0x8c], ecx
mov ecx, 1
mov dword [esp + 0x90], ecx
jmp 0x53385e
mov dword [esp + 0xdc], 1
jmp 0x53378d
test edi, 0x1800000
je 0x533782
mov eax, edi
shr eax, 0x17
and eax, 1
mov dword [esp + 0xdc], eax
jmp 0x53378d
mov eax, 0xd
jmp 0x5337c5
mov ecx, 2
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], ecx
mov word [esp + 0xa8], 0xa0d
jmp 0x53385e
cmp eax, 0x400000
je 0x533852
cmp eax, 0x500000
je 0x53384b
mov eax, 0xffffffe9
jmp 0x5341ba
mov ecx, 2
jmp 0x533857
mov ecx, 1
mov dword [esp + 0x8c], ecx
cmp dword [esp + 0xfc], 0
je 0x53387c
test dword [esp + 0x2c], 0x200
je 0x53387c
mov eax, 0xfffffff3
jmp 0x5341ba
mov eax, 0x55555556
imul dword [esp + 0x150]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [eax + eax*2]
mov eax, 0x55555556
lea ecx, [edi + edi]
mov dword [esp + 0x40], edi
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + 0x20]
test ax, ax
je 0x533912
mov ecx, eax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x533912
inc ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x40], eax
shl eax, 2
push eax
call dword [0x634300]
mov edi, eax
add esp, 4
mov dword [esp + 0x80], edi
test edi, edi
jne 0x5338f6
lea eax, [edi - 6]
jmp 0x5341ba
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x60], 1
mov dword [esp + 0x44], edi
jmp 0x533923
mov eax, dword [esp + 0x20]
mov edi, eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x84], eax
mov dword [esp + 0x104], 0
lea ecx, [eax + eax]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x44]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x88], eax
test ecx, ecx
je 0x5339b8
mov eax, dword [esp + 0x40]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x1c]
mov edx, ecx
movzx eax, word [eax + 0x1e]
shl eax, 2
sub edx, eax
mov eax, dword [esp + 0x44]
add eax, 8
cmp edx, eax
cmovb edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x533996
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x533982
mov edi, dword [esp + 0x80]
mov dword [edi + 4], 0xffffffff
mov eax, dword [esp + 0x80]
mov dword [eax], 0xffffffff
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0xe8]
test byte [esp + 0x3c], 0x10
mov edx, dword [esp + 0x1c]
jne 0x533a1e
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x5339f6
mov ch, byte [edx + 0x18]
mov dword [esp + 0x4c], 1
mov cl, ch
mov byte [esp + 0x13], ch
mov byte [esp + 0x1a], cl
test al, 0x20
je 0x533a1e
movzx eax, ch
mov ecx, dword [esp + 0xb0]
mov al, byte [eax + ecx]
mov byte [esp + 0x13], al
jmp 0x533a25
test dword [esp + 0x2c], 0x100
jne 0x533a1e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x533a1e
test byte [eax + 4], 1
mov ecx, dword [esp + 0xb0]
je 0x533a25
add eax, 8
mov dword [esp + 0x64], eax
jmp 0x533a25
mov ecx, dword [esp + 0xb0]
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x533a4f
mov dh, byte [edx + 0x1a]
mov dword [esp + 0x68], 1
mov dl, dh
mov byte [esp + 0x12], dh
mov byte [esp + 0x1b], dl
test al, al
jns 0x533a4f
movzx eax, dh
mov al, byte [eax + ecx]
mov byte [esp + 0x12], al
mov edx, dword [esp + 0x14]
jmp 0x533a60
test dword [esp + 0x58], 0x40000
mov edi, edx
je 0x533b8f
cmp dword [esp + 0x54], 0
mov edi, esi
je 0x533b1a
cmp esi, ebx
jae 0x533b8f
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x533ac7
cmp edi, ebx
jae 0x533afe
push dword [esp + 0x30]
lea eax, [esp + 0x94]
push eax
push ebx
push edx
push edi
call fcn.005356d0
add esp, 0x14
test eax, eax
jne 0x533b88
mov ebx, dword [esp + 0xec]
mov edx, dword [esp + 0x8c]
jmp 0x533afa
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x533afa
mov al, byte [edi]
cmp al, byte [esp + 0xa8]
jne 0x533afa
cmp ecx, 1
je 0x533b88
mov al, byte [edi + 1]
cmp al, byte [esp + 0xa9]
je 0x533b88
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, ecx
jae 0x533b10
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x533b10
inc edi
cmp edi, ecx
jb 0x533b03
cmp edi, ebx
jb 0x533a90
jmp 0x533b88
cmp esi, ebx
jae 0x533b8f
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x533b58
cmp edi, ebx
jae 0x533b83
push dword [esp + 0x30]
lea eax, [esp + 0x94]
push eax
push ebx
push edx
push edi
call fcn.005356d0
add esp, 0x14
test eax, eax
jne 0x533b88
mov ebx, dword [esp + 0xec]
mov edx, dword [esp + 0x8c]
jmp 0x533b83
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp edi, eax
ja 0x533b83
mov al, byte [edi]
cmp al, byte [esp + 0xa8]
jne 0x533b83
cmp ecx, 1
je 0x533b88
mov al, byte [edi + 1]
cmp al, byte [esp + 0xa9]
je 0x533b88
inc edi
cmp edi, ebx
jb 0x533b25
mov ebp, dword [esp + 0xe8]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
or eax, dword [esp + 0x148]
test eax, 0x4000000
jne 0x533d61
cmp dword [esp + 0x4c], 0
je 0x533bf2
cmp esi, edi
jae 0x533d61
mov cl, byte [esp + 0x1a]
mov dl, byte [esp + 0x13]
cmp cl, dl
je 0x533be0
mov al, byte [esi]
cmp al, cl
je 0x533d61
cmp al, dl
je 0x533d61
inc esi
cmp esi, edi
jb 0x533bc3
jmp 0x533d61
cmp byte [esi], cl
je 0x533d61
inc esi
cmp esi, edi
jb 0x533be0
jmp 0x533d61
test dword [esp + 0x2c], 0x100
je 0x533d39
mov eax, dword [esp + 0x38]
add eax, ebp
cmp esi, eax
jbe 0x533d61
cmp esi, edi
jae 0x533d16
cmp dword [esp + 0x54], 0
je 0x533ca6
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x533c58
cmp esi, ebp
jbe 0x533c8e
push dword [esp + 0x30]
lea ecx, [esp + 0x94]
push ecx
push ebp
push eax
push esi
call fcn.00535830
add esp, 0x14
test eax, eax
jne 0x533d16
mov ebp, dword [esp + 0xe8]
jmp 0x533c8e
mov edx, dword [esp + 0x90]
lea eax, [edx + ebp]
cmp esi, eax
jb 0x533c8e
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0xa8]
jne 0x533c8e
cmp edx, 1
je 0x533d16
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xa9]
je 0x533d16
inc esi
cmp esi, edi
jae 0x533d16
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x533c21
inc esi
cmp esi, edi
jb 0x533c97
jmp 0x533d16
mov eax, dword [esp + 0x8c]
lea ecx, [ecx]
test eax, eax
je 0x533cdc
cmp esi, ebp
jbe 0x533d11
push dword [esp + 0x30]
lea ecx, [esp + 0x94]
push ecx
push ebp
push eax
push esi
call fcn.00535830
add esp, 0x14
test eax, eax
jne 0x533d16
mov ebp, dword [esp + 0xe8]
jmp 0x533d0a
mov edx, dword [esp + 0x90]
lea eax, [edx + ebp]
cmp esi, eax
jb 0x533d0a
mov ecx, esi
sub ecx, edx
mov al, byte [ecx]
cmp al, byte [esp + 0xa8]
jne 0x533d0a
cmp edx, 1
je 0x533d16
mov al, byte [ecx + 1]
cmp al, byte [esp + 0xa9]
je 0x533d16
mov eax, dword [esp + 0x8c]
inc esi
cmp esi, edi
jb 0x533cb0
cmp byte [esi - 1], 0xd
jne 0x533d61
mov eax, dword [esp + 0x8c]
cmp eax, 1
je 0x533d2d
cmp eax, 2
jne 0x533d61
cmp esi, edi
jae 0x533d61
cmp byte [esi], 0xa
jne 0x533d61
inc esi
jmp 0x533d61
mov ebp, dword [esp + 0x64]
test ebp, ebp
je 0x533d61
cmp esi, edi
jae 0x533d61
movzx edx, byte [esi]
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebp], al
jne 0x533d61
inc esi
cmp esi, edi
jb 0x533d45
mov eax, dword [ebx + 8]
or eax, dword [esp + 0x148]
test eax, 0x4000000
jne 0x533e10
cmp dword [esp + 0xfc], 0
jne 0x533e10
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
test ecx, ecx
je 0x533d9f
test byte [ecx + 4], 2
je 0x533d9f
mov eax, edx
sub eax, esi
cmp eax, dword [ecx + 0x28]
jb case.0x533ea1.996
cmp dword [esp + 0x68], 0
je 0x533e10
mov eax, edx
sub eax, esi
cmp eax, 0x3e8
jge 0x533e10
mov eax, dword [esp + 0x4c]
lea ecx, [esi + eax]
cmp ecx, dword [esp + 0x50]
jbe 0x533e10
cmp ecx, edx
jae case.0x533ea1.996
mov ah, byte [esp + 0x1b]
cmp ah, byte [esp + 0x12]
je 0x533df0
lea esp, [esp]
mov al, byte [ecx]
mov ebx, ecx
inc ecx
mov dword [esp + 0x50], ebx
cmp al, ah
je 0x533e08
cmp al, byte [esp + 0x12]
je 0x533e08
cmp ecx, edx
jb 0x533dd0
xor ebp, ebp
jmp 0x533ff9
mov al, byte [ecx]
mov ebx, ecx
mov dword [esp + 0x50], ecx
inc ecx
cmp al, ah
je 0x533e08
cmp ecx, edx
jb 0x533df0
xor ebp, ebp
jmp 0x533ff9
cmp ebx, edx
jae case.0x533ea1.996
mov ebx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0x7c]
mov dword [esp + 0xf8], esi
push eax
push 2
push esi
push dword [esp + 0xf8]
mov dword [esp + 0x110], esi
push esi
mov dword [esp + 0x90], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0xb8], 0
call fcn.00526040
add esp, 0x1c
mov ebp, eax
cmp dword [esp + 0xd8], 0
je 0x533e88
cmp dword [esp + 0x5c], 0
jne 0x533e88
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], esi
test ebp, ebp
jg case.default.0x533ea1
je case.0x533ea1.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x533ea1
jmp dword [eax*4 + 0x5341d4]
mov eax, dword [esp + 0x9c]
mov edi, esi
mov dword [esp + 0xa0], eax
jmp 0x533eef
mov edi, dword [esp + 0xf0]
cmp edi, esi
ja 0x533eef
cmp dword [esp + 0x54], 0
lea edi, [esi + 1]
mov dword [esp + 0xa0], 0
je 0x533eef
mov edx, dword [esp + 0x14]
cmp edi, edx
jae 0x533eef
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x533eef
inc edi
cmp edi, edx
jb 0x533ee2
mov eax, dword [esp + 0x8c]
xor ebp, ebp
test dword [esp + 0x58], 0x40000
mov ebx, dword [esp + 0xec]
je 0x533f42
test eax, eax
je 0x533fad
cmp esi, ebx
jae 0x533f42
push dword [esp + 0x30]
lea ecx, [esp + 0x94]
push ecx
push ebx
push eax
push esi
call fcn.005356d0
add esp, 0x14
test eax, eax
jne 0x533ff9
mov ebx, dword [esp + 0xec]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
test byte [esp + 0x3c], 0x10
mov esi, edi
jne 0x533ff9
mov edx, dword [esp + 0x14]
cmp edi, edx
ja 0x533ff9
cmp edi, dword [esp + 0x6c]
jbe 0x533f96
cmp byte [edi - 1], 0xd
jne 0x533f96
cmp edi, edx
jae 0x533f96
cmp byte [edi], 0xa
jne 0x533f96
mov ebp, dword [esp + 0x1c]
test dword [ebp + 0xc], 0x800
jne 0x533f96
cmp eax, 1
je 0x533f93
cmp eax, 2
je 0x533f93
cmp ecx, 2
jne 0x533f96
lea esi, [edi + 1]
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x120], 0
jmp 0x533a60
mov ecx, dword [esp + 0x90]
mov eax, ebx
sub eax, ecx
cmp esi, eax
ja 0x533fd8
mov al, byte [esi]
cmp al, byte [esp + 0xa8]
jne 0x533fd8
cmp ecx, 1
je 0x533ff9
mov al, byte [esi + 1]
cmp al, byte [esp + 0xa9]
je 0x533ff9
mov eax, dword [esp + 0x8c]
jmp 0x533f49
cmp ebp, 1
je 0x534087
cmp ebp, 0xfffffc19
je 0x534087
cmp dword [esp + 0x60], 0
je 0x534010
push dword [esp + 0x80]
call dword [0x634304]
add esp, 4
test ebp, ebp
je 0x534020
cmp ebp, 0xfffffff4
je 0x534020
mov eax, ebp
jmp 0x5341ba
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x53405e
mov edx, dword [esp + 0x150]
cmp edx, 1
jle 0x534057
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x28]
sub eax, esi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
sub eax, esi
mov dword [ecx + 4], eax
cmp edx, 2
jle 0x534057
sub ebx, esi
mov dword [ecx + 8], ebx
mov eax, 0xfffffff4
jmp 0x534061
or eax, 0xffffffff
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x5341ba
test byte [ecx], 0x20
je 0x5341ba
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x124]
mov dword [edx], ecx
jmp 0x5341ba
cmp dword [esp + 0x60], 0
mov edi, dword [esp + 0x24]
je 0x5340d8
mov esi, dword [esp + 0x80]
cmp edi, 4
jl 0x5340ba
lea eax, [edi*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [esp + 0x28]
add eax, 8
push eax
call fcn.005514d0
add esp, 0xc
cmp dword [esp + 0x100], edi
jle 0x5340ce
or dword [esp + 0x104], 0x10000
push esi
call dword [0x634304]
add esp, 4
test dword [esp + 0x104], 0x10000
mov ecx, dword [esp + 0x100]
je 0x5340f4
cmp ecx, edi
jl 0x5340f4
xor edi, edi
jmp 0x5340fd
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx esi, word [ebx + 0x1e]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
cmp eax, esi
jg 0x534162
test edx, edx
je 0x534162
lea eax, [esi*2 + 2]
cmp eax, dword [esp + 0x150]
lea ecx, [edx + ecx*4]
cmovg eax, dword [esp + 0x150]
xor ebx, ebx
lea eax, [edx + eax*4]
xor edx, edx
mov esi, eax
sub esi, ecx
add esi, 3
shr esi, 2
cmp ecx, eax
cmova esi, ebx
test esi, esi
je 0x53415e
jmp 0x534150
inc edx
mov dword [ecx], 0xffffffff
lea ecx, [ecx + 4]
cmp edx, esi
jb 0x534150
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x150], 2
jge 0x534170
xor edi, edi
jmp 0x534191
mov eax, dword [esp + 0xf0]
sub eax, dword [esp + 0xe8]
mov dword [edx], eax
mov eax, dword [esp + 0xf4]
sub eax, dword [esp + 0xe8]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5341aa
test byte [eax], 0x20
je 0x5341aa
mov edx, dword [eax + 0x18]
mov ecx, dword [esp + 0x120]
mov dword [edx], ecx
mov eax, edi
jmp 0x5341ba
mov eax, 0xffffffe8
jmp 0x5341ba
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005395e6
add esp, 0x120
ret