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

Disassembly:
sub esp, 0xfc
mov eax, dword [esp + 0x108]
push ebx
mov ebx, dword [esp + 0x104]
push ebp
mov ebp, dword [esp + 0x118]
push esi
xor esi, esi
cmp ebx, esi
push edi
lea edi, [eax + ebp]
lea ecx, [edi - 1]
mov dword [esp + 0xf0], ecx
mov ecx, dword [esp + 0x11c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x100], esi
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0xf4], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0xf8], esi
jne 0x541c64
cmp dword [esp + 0x114], esi
jne 0x541c64
cmp eax, esi
jne 0x541c64
cmp ecx, 0xfffffc19
jne 0x541c64
cmp ebp, ecx
jne 0x541c64
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call fcn.005340e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 0x20
mov edx, dword [esp + 0x124]
test edx, 0xe20f5a6f
je 0x541c85
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0xfc
ret 0x20
cmp ebx, esi
je 0x542a3a
cmp eax, esi
je 0x542a3a
cmp dword [esp + 0x128], esi
mov eax, dword [esp + 0x12c]
jne 0x541cad
cmp eax, esi
jg 0x542a3a
cmp eax, esi
jge 0x541cc3
pop edi
pop esi
pop ebp
mov eax, 0xfffffff1
pop ebx
add esp, 0xfc
ret 0x20
cmp ecx, esi
jge 0x541cd9
pop edi
pop esi
pop ebp
mov eax, 0xffffffe0
pop ebx
add esp, 0xfc
ret 0x20
cmp ebp, esi
jl 0x542a28
cmp ebp, ecx
jg 0x542a28
mov eax, dword [ebx]
cmp eax, 0x50435245
je 0x541d0e
sub eax, 0x45524350
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0x19
pop ebp
add eax, 0xffffffe3
pop ebx
add esp, 0xfc
ret 0x20
test byte [ebx + 0xc], 1
jne 0x541d26
pop edi
pop esi
pop ebp
mov eax, 0xffffffe4
pop ebx
add esp, 0xfc
ret 0x20
mov eax, dword [ebx + 8]
shr eax, 0xb
and eax, 1
test edx, 0x8000000
mov dword [esp + 0x84], eax
mov dword [esp + 0x1c], eax
je 0x541d49
mov ecx, 2
jmp 0x541d51
mov ecx, edx
shr ecx, 0xf
and ecx, 1
cmp eax, esi
mov dword [esp + 0xc0], ecx
je 0x541df9
test edx, 0x2000
jne 0x541df9
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x118]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
call fcn.00543170
cmp eax, esi
je 0x541dce
cmp dword [esp + 0x12c], 2
jl 0x541da4
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x20]
mov dword [ecx], edx
mov dword [ecx + 4], eax
cmp eax, 5
jg 0x541dbc
cmp dword [esp + 0xc0], 1
mov eax, 0xffffffe7
jg 0x542a3f
pop edi
pop esi
pop ebp
mov eax, 0xfffffff6
pop ebx
add esp, 0xfc
ret 0x20
cmp ebp, esi
jle 0x541df9
cmp ebp, dword [esp + 0x11c]
jge 0x541df9
mov eax, edi
mov cl, byte [eax]
and cl, 0xc0
cmp cl, 0x80
jne 0x541df9
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0xfc
ret 0x20
movzx esi, word [ebx + 0x22]
movzx ebp, word [ebx + 0x26]
movzx ecx, word [ebx + 0x24]
lea edx, [esi + ebx]
mov dword [esp + 0x68], edx
xor eax, eax
cmp dword [esp + 0x114], eax
mov edx, 0x989680
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0xe0], eax
je 0x541eb0
mov eax, dword [esp + 0x114]
mov eax, dword [eax]
test al, 1
mov dword [esp + 0x14], eax
je 0x541e5d
mov eax, dword [esp + 0x114]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
test al, 2
je 0x541e73
mov eax, dword [esp + 0x114]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
test al, 0x10
je 0x541e89
mov eax, dword [esp + 0x114]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
test al, 4
je 0x541ea2
mov eax, dword [esp + 0x114]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x14]
test al, 8
je 0x541eb0
mov edx, dword [esp + 0x114]
mov edx, dword [edx + 0x10]
test dword [ebx + 0xc], 0x2000
je 0x541ecd
mov ebx, dword [ebx + 0x10]
cmp ebx, dword [esp + 0x3c]
jae 0x541ec6
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x110]
test dword [ebx + 0xc], 0x4000
je 0x541eea
mov ebx, dword [ebx + 0x14]
cmp ebx, dword [esp + 0x40]
jae 0x541ee3
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x110]
test edx, edx
jne 0x541ef3
mov edx, 0x566a20
mov eax, dword [ebx + 8]
imul ecx, ebp
mov ebx, eax
or ebx, dword [esp + 0x124]
add ecx, esi
add ecx, dword [esp + 0x110]
shr ebx, 4
and ebx, 1
mov dword [esp + 0xfc], ebx
mov ebx, dword [esp + 0x110]
mov ebx, dword [ebx + 0xc]
shr ebx, 8
and ebx, 1
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x120]
mov dword [esp + 0x108], ebx
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x11c]
mov ebx, eax
shr ebx, 0x12
and ebx, 1
mov dword [esp + 0x104], ebx
mov ebx, dword [esp + 0x118]
mov dword [esp + 0xac], ebx
add ebx, ecx
mov ecx, eax
shr ecx, 5
and ecx, 1
mov dword [esp + 0x90], ecx
mov ecx, eax
shr ecx, 0x1d
and ecx, 1
mov dword [esp + 0x8c], ecx
mov ecx, eax
shr ecx, 0x19
and ecx, 1
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x124]
mov ebp, ecx
shr ebp, 7
and ebp, 1
mov dword [esp + 0x7c], ebp
mov ebp, ecx
shr ebp, 8
and ebp, 1
mov dword [esp + 0x80], ebp
mov ebp, ecx
shr ebp, 0xa
and ebp, 1
xor esi, esi
mov dword [esp + 0x94], ebp
mov ebp, ecx
shr ebp, 0x1c
and ebp, 1
mov dword [esp + 0x64], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xdc], esi
mov esi, dword [esp + 0x110]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x98], ebp
mov ebp, esi
shr ebp, 0xc
and ebp, 1
mov dword [esp + 0xa4], ebp
lea ebp, [edx + 0x100]
mov dword [esp + 0x70], edx
add edx, 0x340
and ecx, 0x1800000
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], edx
je 0x54206c
cmp ecx, 0x800000
je 0x54205f
cmp ecx, 0x1000000
je 0x542084
pop edi
pop esi
pop ebp
mov eax, 0xffffffe9
pop ebx
add esp, 0xfc
ret 0x20
mov dword [esp + 0xa0], 1
jmp 0x54208f
test eax, 0x1800000
je 0x542084
mov edx, eax
shr edx, 0x17
and edx, 1
mov dword [esp + 0xa0], edx
jmp 0x54208f
mov dword [esp + 0xa0], 0
mov ecx, dword [esp + 0x124]
test ecx, 0x700000
je 0x5420a0
mov eax, ecx
and eax, 0x700000
cmp eax, 0x300000
ja 0x5420f9
je 0x5420f2
test eax, eax
je 0x5420c0
cmp eax, 0x100000
je 0x5420eb
cmp eax, 0x200000
jne 0x54204d
mov eax, 0xa
cmp eax, 0xff
mov dword [esp + 0x50], 0
jle 0x54211f
mov ecx, eax
sar ecx, 8
mov dword [esp + 0x54], 2
mov byte [esp + 0x6c], cl
mov byte [esp + 0x6d], al
jmp 0x54212b
mov eax, 0xd
jmp 0x5420c5
mov eax, 0xd0a
jmp 0x5420c5
cmp eax, 0x400000
je 0x542115
cmp eax, 0x500000
jne 0x54204d
mov dword [esp + 0x50], 2
jmp 0x54212b
mov dword [esp + 0x50], 1
jmp 0x54212b
mov dword [esp + 0x54], 1
mov byte [esp + 0x6c], al
cmp dword [esp + 0xc0], 0
je 0x54214f
test esi, 0x200
je 0x54214f
pop edi
pop esi
pop ebp
mov eax, 0xfffffff3
pop ebx
add esp, 0xfc
ret 0x20
mov ebp, dword [esp + 0x12c]
mov eax, 0x55555556
imul ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
lea esi, [eax + eax*2]
lea ecx, [esi + esi]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x110]
movzx eax, word [eax + 0x20]
test ax, ax
jbe 0x5421de
movzx ecx, ax
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x5421de
lea esi, [ecx + ecx*2 + 3]
lea ecx, [esi*4]
push ecx
call dword [0x58ae04]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x44], ecx
jne 0x5421cd
pop edi
pop esi
pop ebp
lea eax, [ecx - 6]
pop ebx
add esp, 0xfc
ret 0x20
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x28], 1
jmp 0x5421e9
mov ecx, dword [esp + 0x128]
mov dword [esp + 0x44], ecx
lea edx, [esi + esi]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
test ecx, ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0xc8], 0
je 0x542280
mov edx, dword [esp + 0x110]
movzx edx, word [edx + 0x1e]
add edx, edx
add edx, edx
lea eax, [ecx + esi*4]
mov esi, edx
mov edx, eax
sub edx, esi
lea esi, [ecx + 8]
cmp edx, esi
jae 0x542232
mov edx, esi
sub eax, 4
cmp eax, edx
jb 0x542258
lea esp, [esp]
mov dword [eax], 0xffffffff
sub eax, 4
cmp eax, edx
jae 0x542240
mov ebx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x44]
test ebp, ebp
jle 0x54226d
mov dword [ecx], 0xffffffff
mov ebx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x44]
cmp ebp, 1
jle 0x542280
mov dword [ecx + 4], 0xffffffff
mov ebx, dword [esp + 0xb0]
cmp dword [esp + 0xfc], 0
mov edx, dword [esp + 0x110]
jne 0x5422de
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x5422bf
test al, 0x20
mov cl, byte [edx + 0x18]
mov dword [esp + 0x34], 1
mov byte [esp + 0x11], cl
mov byte [esp + 0x10], cl
je 0x5422de
movzx eax, cl
mov ecx, dword [esp + 0x74]
mov al, byte [eax + ecx]
mov byte [esp + 0x11], al
jmp 0x5422de
cmp dword [esp + 0x108], 0
jne 0x5422de
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5422de
test byte [eax + 4], 1
je 0x5422de
add eax, 8
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x54230d
test al, al
mov cl, byte [edx + 0x1a]
mov dword [esp + 0x100], 1
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], cl
jns 0x54230d
mov edx, dword [esp + 0x74]
movzx ecx, cl
mov al, byte [ecx + edx]
mov byte [esp + 0x12], al
cmp dword [esp + 0x104], 0
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x10]
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x14], edx
je 0x542421
cmp dword [esp + 0x1c], 0
mov esi, edi
je 0x5423b7
cmp edi, ebx
jae 0x542417
cmp dword [esp + 0x50], 0
je 0x542379
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
push ecx
lea edx, [esp + 0x58]
push edx
push ebx
push eax
push esi
call fcn.00542d60
test eax, eax
mov ebp, dword [esp + 0x54]
jne 0x542410
mov ebx, dword [esp + 0xb0]
mov edx, dword [esp + 0x18]
jmp 0x54239b
mov ecx, ebx
sub ecx, ebp
cmp esi, ecx
ja 0x54239b
mov al, byte [esi]
cmp al, byte [esp + 0x6c]
jne 0x54239b
cmp ebp, 1
je 0x542410
mov cl, byte [esi + 1]
cmp cl, byte [esp + 0x6d]
je 0x542410
add esi, 1
cmp esi, edx
jae 0x5423b1
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x5423b1
add esi, 1
cmp esi, edx
jb 0x5423a2
cmp esi, ebx
jb 0x542343
jmp 0x542410
cmp edi, ebx
jae 0x542417
jmp 0x5423c0
cmp dword [esp + 0x50], 0
je 0x5423eb
mov edx, dword [esp + 0x50]
push 0
lea ecx, [esp + 0x58]
push ecx
push ebx
push edx
push esi
call fcn.00542d60
test eax, eax
mov ebp, dword [esp + 0x54]
jne 0x542410
mov ebx, dword [esp + 0xb0]
jmp 0x542409
mov eax, ebx
sub eax, ebp
cmp esi, eax
ja 0x542409
mov cl, byte [esi]
cmp cl, byte [esp + 0x6c]
jne 0x542409
cmp ebp, 1
je 0x542410
mov dl, byte [esi + 1]
cmp dl, byte [esp + 0x6d]
je 0x542410
add esi, 1
cmp esi, ebx
jb 0x5423c0
mov ecx, dword [esp + 0xac]
mov al, byte [esp + 0x10]
mov edx, esi
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x110]
mov esi, dword [esi + 8]
or esi, dword [esp + 0x124]
test esi, 0x4000000
jne 0x5425f9
cmp dword [esp + 0x34], 0
je 0x542494
cmp al, byte [esp + 0x11]
je 0x542475
cmp edi, edx
jae 0x5425f9
mov al, byte [edi]
cmp al, byte [esp + 0x10]
je 0x5425f9
cmp al, byte [esp + 0x11]
je 0x5425f9
add edi, 1
cmp edi, edx
jb 0x542453
jmp 0x5425f9
cmp edi, edx
jae 0x5425f9
lea ecx, [ecx]
cmp byte [edi], al
je 0x5425f9
add edi, 1
cmp edi, edx
jb 0x542480
jmp 0x5425f9
cmp dword [esp + 0x108], 0
je 0x5425ca
mov eax, dword [esp + 0x120]
add eax, ecx
cmp edi, eax
jbe 0x5425f9
cmp dword [esp + 0x1c], 0
je 0x542547
cmp edi, edx
jae 0x5425a8
mov eax, dword [esp + 0x50]
test eax, eax
je 0x5424fd
cmp edi, ecx
jbe 0x542526
mov edx, dword [esp + 0x1c]
push edx
lea edx, [esp + 0x58]
push edx
push ecx
push eax
push edi
call fcn.00542f20
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x5425a8
mov ecx, dword [esp + 0xac]
mov ebp, dword [esp + 0x54]
jmp 0x542526
lea eax, [ecx + ebp]
cmp edi, eax
jb 0x542526
mov bl, byte [esp + 0x6c]
mov eax, edi
sub eax, ebp
cmp byte [eax], bl
jne 0x542526
cmp ebp, 1
je 0x5425a8
mov bl, byte [esp + 0x6d]
cmp byte [eax + 1], bl
je 0x5425a8
add edi, 1
cmp edi, edx
jae 0x5425a8
lea ecx, [ecx]
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x542541
add edi, 1
cmp edi, edx
jb 0x542530
jmp 0x5425a8
cmp edi, edx
jb 0x5424c6
jmp 0x5425a8
cmp edi, edx
jae 0x5425a8
jmp 0x542550
mov eax, dword [esp + 0x50]
test eax, eax
je 0x542580
cmp edi, ecx
jbe 0x5425a1
push 0
lea edx, [esp + 0x58]
push edx
push ecx
push eax
push edi
call fcn.00542f20
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x5425a8
mov ecx, dword [esp + 0xac]
mov ebp, dword [esp + 0x54]
jmp 0x5425a1
lea eax, [ecx + ebp]
cmp edi, eax
jb 0x5425a1
mov bl, byte [esp + 0x6c]
mov eax, edi
sub eax, ebp
cmp byte [eax], bl
jne 0x5425a1
cmp ebp, 1
je 0x5425a8
mov bl, byte [esp + 0x6d]
cmp byte [eax + 1], bl
je 0x5425a8
add edi, 1
cmp edi, edx
jb 0x542550
cmp byte [edi - 1], 0xd
jne 0x5425f9
mov eax, dword [esp + 0x50]
cmp eax, 1
je 0x5425bc
cmp eax, 2
jne 0x5425f9
cmp edi, edx
jae 0x5425f9
cmp byte [edi], 0xa
jne 0x5425f9
add edi, 1
jmp 0x5425f9
cmp dword [esp + 0x2c], 0
je 0x5425f9
cmp edi, edx
jae 0x5425f9
movzx eax, byte [edi]
mov ecx, eax
and ecx, 7
mov ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x2c]
shr eax, 3
mov al, byte [eax + ecx]
test al, bl
jne 0x5425f9
add edi, 1
cmp edi, edx
jb 0x5425d5
mov ecx, dword [esp + 0x110]
mov edx, dword [ecx + 8]
or edx, dword [esp + 0x124]
mov esi, dword [esp + 0x14]
test edx, 0x4000000
mov dword [esp + 0x18], esi
jne 0x5426ce
cmp dword [esp + 0xc0], 0
jne 0x5426ce
mov eax, dword [esp + 0x30]
test eax, eax
je 0x542643
test byte [eax + 4], 2
je 0x542643
mov ecx, esi
sub ecx, edi
cmp ecx, dword [eax + 0x28]
jb case.0x542748.996
cmp dword [esp + 0x100], 0
je 0x5426ce
mov edx, esi
sub edx, edi
cmp edx, 0x3e8
jge 0x5426ce
xor eax, eax
cmp dword [esp + 0x34], eax
setne al
add eax, edi
cmp eax, dword [esp + 0xf0]
jbe 0x5426ce
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
cmp cl, dl
je 0x5426a4
cmp eax, esi
jae case.0x542748.996
mov ebp, dword [esp + 0x14]
movzx esi, cl
movzx ecx, byte [eax]
add eax, 1
cmp ecx, esi
je 0x5426c0
movzx ebx, dl
cmp ecx, ebx
je 0x5426c0
cmp eax, ebp
jb 0x542688
xor ebp, ebp
jmp 0x54287e
cmp eax, esi
jae case.0x542748.996
mov dl, byte [eax]
add eax, 1
cmp dl, cl
je 0x5426bc
cmp eax, esi
jb 0x5426a8
xor ebp, ebp
jmp 0x54287e
mov ebp, dword [esp + 0x14]
sub eax, 1
cmp eax, ebp
jae case.0x542748.996
mov dword [esp + 0xf0], eax
mov ecx, dword [esp + 0xa8]
xor ebx, ebx
push ebx
push ebx
lea eax, [esp + 0x40]
push eax
push 2
push edi
push ecx
push edi
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0x7c], ebx
call fcn.005340e0
cmp dword [esp + 0x9c], ebx
mov ebp, eax
je 0x54272f
cmp dword [esp + 0x24], ebx
jne 0x54272f
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x24], edx
mov dword [esp + 0xf8], edi
cmp ebp, ebx
jg case.default.0x542748
je case.0x542748.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x542748
jmp dword [eax*4 + 0x542a4c]
mov eax, dword [esp + 0x60]
mov esi, edi
mov dword [esp + 0x64], eax
jmp 0x542791
mov esi, dword [esp + 0xb4]
cmp esi, edi
ja 0x542791
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x64], ebx
lea esi, [edi + 1]
je 0x542791
mov eax, dword [esp + 0x14]
cmp esi, eax
jae 0x542791
jmp 0x542780
mov cl, byte [esi]
and cl, 0xc0
cmp cl, 0x80
jne 0x542791
add esi, 1
cmp esi, eax
jb 0x542780
xor ebp, ebp
cmp dword [esp + 0x104], ebx
je 0x5427cf
cmp dword [esp + 0x50], ebx
mov ebx, dword [esp + 0xb0]
je 0x542842
cmp edi, ebx
jae 0x5427d6
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
push edx
lea eax, [esp + 0x58]
push eax
push ebx
push ecx
push edi
call fcn.00542d60
test eax, eax
jne 0x54287e
mov ebx, dword [esp + 0xb0]
cmp dword [esp + 0xfc], 0
mov edi, esi
jne 0x54287e
mov eax, dword [esp + 0x14]
cmp esi, eax
ja 0x54287e
cmp esi, dword [esp + 0xf4]
jbe 0x542832
cmp byte [esi - 1], 0xd
jne 0x542832
cmp esi, eax
jae 0x542832
cmp byte [esi], 0xa
jne 0x542832
mov eax, dword [esp + 0x110]
test dword [eax + 0xc], 0x800
jne 0x542832
mov eax, dword [esp + 0x50]
cmp eax, 1
je 0x54282f
cmp eax, 2
je 0x54282f
cmp dword [esp + 0x54], 2
jne 0x542832
lea edi, [esi + 1]
mov dword [esp + 0xe4], 0
jmp 0x54230d
mov eax, dword [esp + 0x54]
mov edx, ebx
sub edx, eax
cmp edi, edx
ja 0x5427d6
mov cl, byte [edi]
cmp cl, byte [esp + 0x6c]
jne 0x5427d6
cmp eax, 1
je 0x54287e
mov dl, byte [edi + 1]
cmp dl, byte [esp + 0x6d]
je 0x54287e
jmp 0x5427d6
cmp ebp, 1
je 0x542918
cmp ebp, 0xfffffc19
je 0x542918
cmp dword [esp + 0x28], 0
je 0x542890
mov ecx, dword [esp + 0x44]
push ecx
call dword [0x58ae08]
test ebp, ebp
je 0x54289d
cmp ebp, 0xfffffff4
jne 0x542a19
mov esi, dword [esp + 0xf8]
test esi, esi
je 0x5428e4
mov edi, dword [esp + 0x12c]
cmp edi, 1
jle 0x5428dd
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x128]
sub eax, edx
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
sub eax, edx
cmp edi, 2
mov dword [ecx + 4], eax
jle 0x5428dd
sub esi, edx
mov dword [ecx + 8], esi
mov eax, 0xfffffff4
jmp 0x5428e7
or eax, 0xffffffff
mov ecx, dword [esp + 0x114]
test ecx, ecx
je 0x542a3f
test byte [ecx], 0x20
je 0x542a3f
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xfc
ret 0x20
cmp dword [esp + 0x28], 0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x128]
mov ebp, 0x10000
je 0x542967
cmp edi, 4
mov esi, dword [esp + 0x44]
jl 0x542950
lea edx, [edi*4 - 8]
push edx
lea eax, [esi + 8]
push eax
lea ecx, [ebx + 8]
push ecx
call fcn.00545633
add esp, 0xc
cmp dword [esp + 0xc4], edi
jle 0x542960
or dword [esp + 0xc8], ebp
push esi
call dword [0x58ae08]
test dword [esp + 0xc8], ebp
mov esi, dword [esp + 0xc4]
je 0x54297f
cmp esi, edi
jl 0x54297f
xor ebp, ebp
jmp 0x542988
mov eax, esi
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
mov edx, dword [esp + 0x110]
movzx ecx, word [edx + 0x1e]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
jg 0x5429cf
test ebx, ebx
je 0x5429cf
mov edx, dword [esp + 0x12c]
lea eax, [ecx + ecx + 2]
cmp eax, edx
jle 0x5429b3
mov eax, edx
lea edi, [ebx + esi*4]
lea ecx, [ebx + eax*4]
cmp edi, ecx
jae 0x5429d6
sub ecx, edi
sub ecx, 1
shr ecx, 2
add ecx, 1
or eax, 0xffffffff
rep stosd dword es:[edi], eax
jmp 0x5429d6
mov edx, dword [esp + 0x12c]
cmp edx, 2
jge 0x5429df
xor ebp, ebp
jmp 0x5429fd
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
sub ecx, eax
sub edx, eax
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x114]
test eax, eax
je 0x542a19
test byte [eax], 0x20
je 0x542a19
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0xe4]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xfc
ret 0x20
pop edi
pop esi
pop ebp
mov eax, 0xffffffe8
pop ebx
add esp, 0xfc
ret 0x20
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 0x20