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

Disassembly:
sub esp, 0x118
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x114], eax
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [esp + 0x134]
push esi
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x140]
push edi
lea edi, [edx + ebp]
mov dword [esp + 0x28], ecx
lea ecx, [edi - 1]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], esi
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], ecx
jne 0x545ec3
cmp eax, esi
jne 0x545ec3
cmp edx, esi
jne 0x545ec3
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xfffffc19
jne 0x545ec7
cmp ebp, ecx
jne 0x545ec7
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call fcn.005387a0
jmp 0x546c6c
mov ecx, dword [esp + 0x1c]
test dword [esp + 0x140], 0xe20f5a6f
je 0x545ede
mov eax, 0xfffffffd
jmp 0x546c6c
cmp ebx, esi
je 0x546c67
cmp edx, esi
je 0x546c67
cmp dword [esp + 0x28], esi
mov eax, dword [esp + 0x148]
jne 0x545f03
cmp eax, esi
jg 0x546c67
cmp eax, esi
jge 0x545f11
mov eax, 0xfffffff1
jmp 0x546c6c
cmp ecx, esi
jge 0x545f1f
mov eax, 0xffffffe0
jmp 0x546c6c
cmp ebp, esi
jl 0x546c60
cmp ebp, ecx
jg 0x546c60
mov eax, dword [ebx]
cmp eax, 0x50435245
je 0x545f4c
sub eax, 0x45524350
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0xffffffe3
jmp 0x546c6c
test byte [ebx + 0xc], 1
jne 0x545f5c
mov eax, 0xffffffe4
jmp 0x546c6c
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x140]
shr eax, 0xb
and eax, 1
test ecx, 0x8000000
mov dword [esp + 0xb8], eax
mov dword [esp + 0x2c], eax
je 0x545f86
mov ecx, 2
jmp 0x545f8c
shr ecx, 0xf
and ecx, 1
cmp eax, esi
mov dword [esp + 0xf4], ecx
je 0x546011
test dword [esp + 0x140], 0x2000
jne 0x546011
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
push ecx
push edx
call fcn.005473b0
cmp eax, esi
je 0x545ff1
cmp dword [esp + 0x148], 2
jl 0x545fcf
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [ecx], edx
mov dword [ecx + 4], eax
cmp eax, 5
jg 0x545fe7
cmp dword [esp + 0xf4], 1
mov eax, 0xffffffe7
jg 0x546c6c
mov eax, 0xfffffff6
jmp 0x546c6c
cmp ebp, esi
jle 0x546011
cmp ebp, dword [esp + 0x1c]
jge 0x546011
mov eax, edi
mov cl, byte [eax]
and cl, 0xc0
cmp cl, 0x80
jne 0x546011
mov eax, 0xfffffff5
jmp 0x546c6c
movzx esi, word [ebx + 0x22]
movzx ebp, word [ebx + 0x26]
movzx ecx, word [ebx + 0x24]
lea edx, [ebx + esi]
mov dword [esp + 0x9c], edx
xor eax, eax
cmp dword [esp + 0x24], eax
mov edx, 0x989680
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x114], eax
je 0x5460bc
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test al, 1
mov dword [esp + 0x18], eax
je 0x546075
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
test al, 2
je 0x546088
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
test al, 0x10
je 0x54609b
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
test al, 4
je 0x5460b1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x18]
test al, 8
je 0x5460bc
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x10]
test dword [ebx + 0xc], 0x2000
je 0x5460d6
mov ebx, dword [ebx + 0x10]
cmp ebx, dword [esp + 0x70]
jae 0x5460d2
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x14]
test dword [ebx + 0xc], 0x4000
je 0x5460f0
mov ebx, dword [ebx + 0x14]
cmp ebx, dword [esp + 0x74]
jae 0x5460ec
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x14]
test edx, edx
jne 0x5460f9
mov edx, 0x572d50
mov eax, dword [ebx + 8]
imul ecx, ebp
add ecx, dword [esp + 0x14]
mov ebx, eax
or ebx, dword [esp + 0x140]
add ecx, esi
mov esi, dword [esp + 0x64]
shr ebx, 4
and ebx, 1
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0xc]
shr ebx, 8
and ebx, 1
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], ebx
mov dword [esp + 0xe0], ecx
mov ebx, eax
shr ebx, 0x12
mov dword [esp + 0x100], esi
mov esi, dword [esp + 0x1c]
and ebx, 1
mov dword [esp + 0x58], ebx
lea ebx, [esi + ecx]
mov ecx, eax
shr ecx, 5
and ecx, 1
mov dword [esp + 0xc4], ecx
mov ecx, eax
shr ecx, 0x1d
and ecx, 1
mov dword [esp + 0xc0], ecx
mov ecx, eax
shr ecx, 0x19
and ecx, 1
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x140]
mov ebp, ecx
shr ebp, 7
and ebp, 1
mov dword [esp + 0xb0], ebp
mov ebp, ecx
shr ebp, 8
and ebp, 1
mov dword [esp + 0xb4], ebp
mov ebp, ecx
shr ebp, 0xa
and ebp, 1
xor esi, esi
mov dword [esp + 0xc8], ebp
mov ebp, ecx
shr ebp, 0x1c
and ebp, 1
mov dword [esp + 0x98], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x110], esi
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0xc]
mov dword [esp + 0xcc], ebp
mov ebp, esi
shr ebp, 0xc
and ebp, 1
mov dword [esp + 0xd8], ebp
lea ebp, [edx + 0x100]
mov dword [esp + 0xa4], edx
add edx, 0x340
and ecx, 0x1800000
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], edx
je 0x54625f
cmp ecx, 0x800000
je 0x546252
cmp ecx, 0x1000000
je 0x546277
mov eax, 0xffffffe9
jmp 0x546c6c
mov dword [esp + 0xd4], 1
jmp 0x546282
test eax, 0x1800000
je 0x546277
mov edx, eax
shr edx, 0x17
and edx, 1
mov dword [esp + 0xd4], edx
jmp 0x546282
mov dword [esp + 0xd4], 0
mov ecx, dword [esp + 0x140]
test ecx, 0x700000
je 0x546293
mov eax, ecx
and eax, 0x700000
cmp eax, 0x300000
ja 0x5462f8
je 0x5462f1
test eax, eax
je 0x5462b3
cmp eax, 0x100000
je 0x5462ea
cmp eax, 0x200000
jne 0x546248
mov eax, 0xa
cmp eax, 0xff
mov dword [esp + 0x84], 0
jle 0x546324
mov ecx, eax
sar ecx, 8
mov dword [esp + 0x88], 2
mov byte [esp + 0xa0], cl
mov byte [esp + 0xa1], al
jmp 0x546336
mov eax, 0xd
jmp 0x5462b8
mov eax, 0xd0a
jmp 0x5462b8
cmp eax, 0x400000
je 0x546317
cmp eax, 0x500000
jne 0x546248
mov dword [esp + 0x84], 2
jmp 0x546336
mov dword [esp + 0x84], 1
jmp 0x546336
mov dword [esp + 0x88], 1
mov byte [esp + 0xa0], al
cmp dword [esp + 0xf4], 0
je 0x546352
test esi, 0x200
je 0x546352
mov eax, 0xfffffff3
jmp 0x546c6c
mov ebp, dword [esp + 0x148]
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 + 0x30], eax
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x20]
test ax, ax
jbe 0x5463d6
movzx ecx, ax
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x5463d6
lea esi, [ecx + ecx*2 + 3]
lea ecx, [esi*4]
push ecx
call dword [0x597f0c]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x78], ecx
jne 0x5463c5
lea eax, [ecx - 6]
jmp 0x546c6c
mov ebx, dword [esp + 0xe4]
mov dword [esp + 0x3c], 1
jmp 0x5463de
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x78], 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 + 0x7c], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0xfc], 0
je 0x546470
mov edx, dword [esp + 0x14]
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 0x546427
mov edx, esi
sub eax, 4
cmp eax, edx
jb 0x546448
mov edi, edi
mov dword [eax], 0xffffffff
sub eax, 4
cmp eax, edx
jae 0x546430
mov ebx, dword [esp + 0xe4]
mov ecx, dword [esp + 0x78]
test ebp, ebp
jle 0x54645d
mov dword [ecx], 0xffffffff
mov ebx, dword [esp + 0xe4]
mov ecx, dword [esp + 0x78]
cmp ebp, 1
jle 0x546470
mov dword [ecx + 4], 0xffffffff
mov ebx, dword [esp + 0xe4]
cmp dword [esp + 0x68], 0
mov edx, dword [esp + 0x14]
jne 0x5464c8
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x5464ac
test al, 0x20
mov cl, byte [edx + 0x18]
mov dword [esp + 0x34], 1
mov byte [esp + 0x12], cl
mov byte [esp + 0x11], cl
je 0x5464c8
movzx eax, cl
mov ecx, dword [esp + 0xa8]
mov al, byte [eax + ecx]
mov byte [esp + 0x12], al
jmp 0x5464c8
cmp dword [esp + 0x60], 0
jne 0x5464c8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5464c8
test byte [eax + 4], 1
je 0x5464c8
add eax, 8
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x5464f7
test al, al
mov cl, byte [edx + 0x1a]
mov dword [esp + 0x50], 1
mov byte [esp + 0x13], cl
mov byte [esp + 0x23], cl
jns 0x5464f7
mov edx, dword [esp + 0xa8]
movzx ecx, cl
mov al, byte [ecx + edx]
mov byte [esp + 0x13], al
cmp dword [esp + 0x58], 0
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x11]
mov ebp, dword [esp + 0x88]
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x1c], edx
je 0x546636
cmp dword [esp + 0x2c], 0
mov esi, edi
je 0x5465bf
cmp edi, ebx
jae 0x54662c
cmp dword [esp + 0x84], 0
je 0x546573
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x84]
push ecx
lea edx, [esp + 0x8c]
push edx
push ebx
push eax
push esi
call fcn.00546fa0
test eax, eax
mov ebp, dword [esp + 0x88]
jne 0x546625
mov ebx, dword [esp + 0xe4]
mov edx, dword [esp + 0x18]
jmp 0x54659f
mov ecx, ebx
sub ecx, ebp
cmp esi, ecx
ja 0x54659f
mov al, byte [esi]
cmp al, byte [esp + 0xa0]
jne 0x54659f
cmp ebp, 1
je 0x546625
mov cl, byte [esi + 1]
cmp cl, byte [esp + 0xa1]
je 0x546625
add esi, 1
cmp esi, edx
jae 0x5465b5
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x5465b5
add esi, 1
cmp esi, edx
jb 0x5465a6
cmp esi, ebx
jb 0x546531
jmp 0x546625
cmp edi, ebx
jae 0x54662c
cmp dword [esp + 0x84], 0
je 0x5465fa
mov edx, dword [esp + 0x84]
push 0
lea ecx, [esp + 0x8c]
push ecx
push ebx
push edx
push esi
call fcn.00546fa0
test eax, eax
mov ebp, dword [esp + 0x88]
jne 0x546625
mov ebx, dword [esp + 0xe4]
jmp 0x54661e
mov eax, ebx
sub eax, ebp
cmp esi, eax
ja 0x54661e
mov cl, byte [esi]
cmp cl, byte [esp + 0xa0]
jne 0x54661e
cmp ebp, 1
je 0x546625
mov dl, byte [esi + 1]
cmp dl, byte [esp + 0xa1]
je 0x546625
add esi, 1
cmp esi, ebx
jb 0x5465c3
mov ecx, dword [esp + 0xe0]
mov al, byte [esp + 0x11]
mov edx, esi
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 8]
or esi, dword [esp + 0x140]
test esi, 0x4000000
jne 0x54684b
cmp dword [esp + 0x34], 0
je 0x5466b4
cmp al, byte [esp + 0x12]
je 0x546692
cmp edi, edx
jae 0x54684b
jmp 0x546670
mov al, byte [edi]
cmp al, byte [esp + 0x11]
je 0x54684b
cmp al, byte [esp + 0x12]
je 0x54684b
add edi, 1
cmp edi, edx
jb 0x546670
jmp 0x54684b
cmp edi, edx
jae 0x54684b
lea ebx, [ebx]
cmp byte [edi], al
je 0x54684b
add edi, 1
cmp edi, edx
jb 0x5466a0
jmp 0x54684b
cmp dword [esp + 0x60], 0
je 0x54681c
mov eax, dword [esp + 0x64]
add eax, ecx
cmp edi, eax
jbe 0x54684b
cmp dword [esp + 0x2c], 0
je 0x546781
cmp edi, edx
jae 0x5467f7
mov eax, dword [esp + 0x84]
test eax, eax
je 0x546720
cmp edi, ecx
jbe 0x54674f
mov edx, dword [esp + 0x2c]
push edx
lea edx, [esp + 0x8c]
push edx
push ecx
push eax
push edi
call fcn.00547160
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x5467f7
mov ecx, dword [esp + 0xe0]
mov ebp, dword [esp + 0x88]
jmp 0x54674f
lea eax, [ecx + ebp]
cmp edi, eax
jb 0x54674f
mov bl, byte [esp + 0xa0]
mov eax, edi
sub eax, ebp
cmp byte [eax], bl
jne 0x54674f
cmp ebp, 1
je 0x5467f7
mov bl, byte [esp + 0xa1]
cmp byte [eax + 1], bl
je 0x5467f7
add edi, 1
cmp edi, edx
jae 0x5467f7
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x546774
add edi, 1
cmp edi, edx
jb 0x546760
jmp 0x5467f7
cmp edi, edx
jb 0x5466e0
jmp 0x5467f7
cmp edi, edx
jae 0x5467f7
lea esp, [esp]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5467c9
cmp edi, ecx
jbe 0x5467f0
push 0
lea edx, [esp + 0x8c]
push edx
push ecx
push eax
push edi
call fcn.00547160
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x5467f7
mov ecx, dword [esp + 0xe0]
mov ebp, dword [esp + 0x88]
jmp 0x5467f0
lea eax, [ecx + ebp]
cmp edi, eax
jb 0x5467f0
mov bl, byte [esp + 0xa0]
mov eax, edi
sub eax, ebp
cmp byte [eax], bl
jne 0x5467f0
cmp ebp, 1
je 0x5467f7
mov bl, byte [esp + 0xa1]
cmp byte [eax + 1], bl
je 0x5467f7
add edi, 1
cmp edi, edx
jb 0x546790
cmp byte [edi - 1], 0xd
jne 0x54684b
mov eax, dword [esp + 0x84]
cmp eax, 1
je 0x54680e
cmp eax, 2
jne 0x54684b
cmp edi, edx
jae 0x54684b
cmp byte [edi], 0xa
jne 0x54684b
add edi, 1
jmp 0x54684b
cmp dword [esp + 0x44], 0
je 0x54684b
cmp edi, edx
jae 0x54684b
movzx eax, byte [edi]
mov ecx, eax
and ecx, 7
mov ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x44]
shr eax, 3
mov al, byte [eax + ecx]
test al, bl
jne 0x54684b
add edi, 1
cmp edi, edx
jb 0x546827
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
or edx, dword [esp + 0x140]
mov esi, dword [esp + 0x1c]
test edx, 0x4000000
mov dword [esp + 0x18], esi
jne 0x546914
cmp dword [esp + 0xf4], 0
jne 0x546914
mov eax, dword [esp + 0x40]
test eax, eax
je 0x546892
test byte [eax + 4], 2
je 0x546892
mov ecx, esi
sub ecx, edi
cmp ecx, dword [eax + 0x28]
jb case.0x546991.996
cmp dword [esp + 0x50], 0
je 0x546914
mov edx, esi
sub edx, edi
cmp edx, 0x3e8
jge 0x546914
xor eax, eax
cmp dword [esp + 0x34], eax
setne al
add eax, edi
cmp eax, dword [esp + 0x48]
jbe 0x546914
mov cl, byte [esp + 0x23]
mov dl, byte [esp + 0x13]
cmp cl, dl
je 0x5468ed
cmp eax, esi
jae case.0x546991.996
mov ebp, dword [esp + 0x1c]
movzx esi, cl
movzx ecx, byte [eax]
add eax, 1
cmp ecx, esi
je 0x546909
movzx ebx, dl
cmp ecx, ebx
je 0x546909
cmp eax, ebp
jb 0x5468d1
xor ebp, ebp
jmp 0x546ade
cmp eax, esi
jae case.0x546991.996
mov dl, byte [eax]
add eax, 1
cmp dl, cl
je 0x546905
cmp eax, esi
jb 0x5468f1
xor ebp, ebp
jmp 0x546ade
mov ebp, dword [esp + 0x1c]
sub eax, 1
cmp eax, ebp
jae case.0x546991.996
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0xdc]
xor ebx, ebx
push ebx
push ebx
lea eax, [esp + 0x74]
push eax
push 2
push edi
push ecx
push edi
mov dword [esp + 0x104], edi
mov dword [esp + 0x10c], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0xb0], ebx
call fcn.005387a0
cmp dword [esp + 0xd0], ebx
mov ebp, eax
je 0x546978
cmp dword [esp + 0x38], ebx
jne 0x546978
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x38], edx
mov dword [esp + 0x54], edi
cmp ebp, ebx
jg case.default.0x546991
je case.0x546991.995
lea eax, [ebp + 0x3e4]
cmp eax, 4
ja case.default.0x546991
jmp dword [eax*4 + 0x546c88]
mov eax, dword [esp + 0x94]
mov esi, edi
mov dword [esp + 0x98], eax
jmp 0x5469e1
mov esi, dword [esp + 0xe8]
cmp esi, edi
ja 0x5469e1
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x98], ebx
lea esi, [edi + 1]
je 0x5469e1
mov eax, dword [esp + 0x1c]
cmp esi, eax
jae 0x5469e1
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xc0
cmp cl, 0x80
jne 0x5469e1
add esi, 1
cmp esi, eax
jb 0x5469d0
xor ebp, ebp
cmp dword [esp + 0x58], ebx
je 0x546a25
cmp dword [esp + 0x84], ebx
mov ebx, dword [esp + 0xe4]
je 0x546a95
cmp edi, ebx
jae 0x546a2c
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x84]
push edx
lea eax, [esp + 0x8c]
push eax
push ebx
push ecx
push edi
call fcn.00546fa0
test eax, eax
jne 0x546ade
mov ebx, dword [esp + 0xe4]
cmp dword [esp + 0x68], 0
mov edi, esi
jne 0x546ade
mov eax, dword [esp + 0x1c]
cmp esi, eax
ja 0x546ade
cmp esi, dword [esp + 0x4c]
jbe 0x546a85
cmp byte [esi - 1], 0xd
jne 0x546a85
cmp esi, eax
jae 0x546a85
cmp byte [esi], 0xa
jne 0x546a85
mov eax, dword [esp + 0x14]
test dword [eax + 0xc], 0x800
jne 0x546a85
mov eax, dword [esp + 0x84]
cmp eax, 1
je 0x546a82
cmp eax, 2
je 0x546a82
cmp dword [esp + 0x88], 2
jne 0x546a85
lea edi, [esi + 1]
mov dword [esp + 0x118], 0
jmp 0x5464f7
mov eax, dword [esp + 0x88]
mov edx, ebx
sub edx, eax
cmp edi, edx
ja 0x546a2c
mov cl, byte [edi]
cmp cl, byte [esp + 0xa0]
jne 0x546a2c
cmp eax, 1
je 0x546ade
mov dl, byte [edi + 1]
cmp dl, byte [esp + 0xa1]
je 0x546ade
jmp 0x546a2c
cmp ebp, 1
je 0x546b64
cmp ebp, 0xfffffc19
je 0x546b64
cmp dword [esp + 0x3c], 0
je 0x546af0
mov ecx, dword [esp + 0x78]
push ecx
call dword [0x597f10]
test ebp, ebp
je 0x546afd
cmp ebp, 0xfffffff4
jne 0x546c5c
mov esi, dword [esp + 0x54]
test esi, esi
je 0x546b3b
mov edi, dword [esp + 0x148]
cmp edi, 1
jle 0x546b34
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
sub eax, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
sub eax, ecx
cmp edi, 2
mov dword [edx + 4], eax
jle 0x546b34
sub esi, ecx
mov dword [edx + 8], esi
mov eax, 0xfffffff4
jmp 0x546b3e
or eax, 0xffffffff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x546c6c
test byte [ecx], 0x20
je 0x546c6c
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x11c]
mov dword [edx], ecx
jmp 0x546c6c
cmp dword [esp + 0x3c], 0
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov ebp, 0x10000
je 0x546bb0
cmp edi, 4
mov esi, dword [esp + 0x78]
jl 0x546b99
lea edx, [edi*4 - 8]
push edx
lea eax, [esi + 8]
push eax
lea ecx, [ebx + 8]
push ecx
call fcn.00549cb0
add esp, 0xc
cmp dword [esp + 0xf8], edi
jle 0x546ba9
or dword [esp + 0xfc], ebp
push esi
call dword [0x597f10]
test dword [esp + 0xfc], ebp
mov esi, dword [esp + 0xf8]
je 0x546bc8
cmp esi, edi
jl 0x546bc8
xor ebp, ebp
jmp 0x546bd1
mov eax, esi
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
mov edx, dword [esp + 0x14]
movzx ecx, word [edx + 0x1e]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
jg 0x546c15
test ebx, ebx
je 0x546c15
mov edx, dword [esp + 0x148]
lea eax, [ecx + ecx + 2]
cmp eax, edx
jle 0x546bf9
mov eax, edx
lea edi, [ebx + esi*4]
lea ecx, [ebx + eax*4]
cmp edi, ecx
jae 0x546c1c
sub ecx, edi
sub ecx, 1
shr ecx, 2
add ecx, 1
or eax, 0xffffffff
rep stosd dword es:[edi], eax
jmp 0x546c1c
mov edx, dword [esp + 0x148]
cmp edx, 2
jge 0x546c25
xor ebp, ebp
jmp 0x546c43
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
sub ecx, eax
sub edx, eax
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x546c5c
test byte [eax], 0x20
je 0x546c5c
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x118]
mov dword [eax], ecx
mov eax, ebp
jmp 0x546c6c
mov eax, 0xffffffe8
jmp 0x546c6c
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00549930
add esp, 0x118
ret 0x20