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

Disassembly:
sub esp, 0x8c
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0x98]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xac]
xor esi, esi
cmp ebp, esi
push edi
mov edi, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
je 0x3005175a
cmp ecx, esi
je 0x3005175a
cmp eax, esi
je 0x3005175a
mov edx, dword [esp + 0xa4]
test edx, 0xbffceff8
je 0x3005054f
push 0x3ec
call dword [fcn.300012c8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret
mov eax, dword [ebp + 0x1c]
cmp eax, esi
mov dword [esp + 0x94], eax
jne 0x300505fd
cmp dword [esp + 0xac], esi
je 0x300505db
cmp word [ecx], si
jne 0x30050579
cmp dword [esp + 0xac], 0xfffffffe
je 0x300505ba
cmp ebx, esi
je 0x300505ba
mov ax, word [edi]
cmp ax, si
jne 0x3005058f
cmp dword [esp + 0xb4], 0xfffffffe
je 0x300505ba
cmp word [ecx], ax
jne 0x300505ba
mov eax, dword [esp + 0x18]
sub eax, 1
add ecx, 2
add edi, 2
sub ebx, 1
cmp eax, esi
mov dword [esp + 0x18], eax
jne 0x3005056a
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
jmp 0x300505db
cmp dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
je 0x300505db
cmp word [ecx], si
jne 0x300505f6
cmp dword [esp + 0xac], 0xfffffffe
jne 0x300505f6
cmp ebx, esi
je 0x3005174a
cmp word [edi], si
jne 0x300505f6
cmp dword [esp + 0xb4], 0xfffffffe
je 0x3005174a
mov ebp, dword [esp + 0xa0]
mov eax, edx
and eax, 4
mov dword [esp + 0x60], eax
mov ecx, edx
and ecx, 2
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], ecx
mov eax, edx
and eax, 0x1000
or edi, 0xffffffff
mov ecx, edx
mov dword [esp + 0x90], eax
and ecx, 3
cmp ecx, 3
mov eax, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], edi
ja case.default.0x30050666
jmp dword [ecx*4 + 0x30051770]
mov dword [esp + 0x38], edi
jmp 0x3005067b
mov dword [esp + 0x38], 0xe7ffffff
xor eax, eax
cmp dword [ebp + 0x18], esi
setne al
add eax, 1
or al, 4
mov dword [esp + 0x48], eax
jmp case.default.0x30050666
mov dword [esp + 0x38], 0xff00ffff
jmp case.default.0x30050666
mov dword [esp + 0x38], 0xe700ffff
mov ecx, edx
and ecx, 0x30000
cmp ecx, 0x10000
je 0x300506e4
cmp ecx, 0x20000
je 0x300506d2
cmp ecx, 0x30000
jne 0x300506e9
and byte [esp + 0x3b], 0xde
test dl, 1
je 0x300506e9
and al, 0xfb
mov dword [esp + 0x48], eax
jmp 0x300506e9
and byte [esp + 0x3b], 0xfe
test dl, 1
je 0x300506e9
and al, 0xfb
mov dword [esp + 0x48], eax
jmp 0x300506e9
and byte [esp + 0x3b], 0xdf
cmp dword [esp + 0x18], esi
je 0x30051633
nop
mov ebx, dword [esp + 0x14]
mov ax, word [ebx]
test ax, ax
mov edx, dword [esp + 0xac]
jne 0x30050710
cmp edx, 0xfffffffe
je 0x300516c4
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x10]
je 0x300516c8
mov si, word [edi]
test si, si
jne 0x30050735
cmp dword [esp + 0xb4], 0xfffffffe
je 0x300516c8
or ebx, 0xffffffff
cmp dword [esp + 0x20], ebx
jne 0x30050754
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.3004ffb6
mov edx, dword [esp + 0x40]
add esp, 8
and dword [esp + 0x20], edx
cmp dword [esp + 0x28], ebx
jne 0x30050770
lea eax, [esp + 0x28]
push eax
push esi
call fcn.3004ffb6
mov ecx, dword [esp + 0x40]
add esp, 8
and dword [esp + 0x28], ecx
cmp dword [esp + 0x94], 0
je 0x30050cdd
test byte [esp + 0x23], 0xc0
jne 0x30050794
mov eax, dword [esp + 0x28]
shr eax, 0x18
test al, 0xc0
je 0x30050cdd
mov dl, byte [esp + 0x2b]
mov bl, byte [esp + 0x23]
and edx, 0xc0
and ebx, 0xc0
mov ebp, edx
cmp ebx, ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x98], ebp
mov dword [esp + 0x64], ebx
jg 0x300507c1
mov dword [esp + 0x64], ebp
mov edx, dword [esp + 0x18]
add edx, 0xffffffff
mov esi, dword [esp + 0x14]
je 0x300507e9
cmp word [esi + 2], 0
jne 0x300507df
cmp dword [esp + 0xac], 0xfffffffe
je 0x300507e9
mov dword [esp + 0x4c], 0
jmp 0x300507f1
mov dword [esp + 0x4c], 1
mov ecx, dword [esp + 0x1c]
add ecx, 0xffffffff
je 0x30050815
cmp word [edi + 2], 0
jne 0x3005080b
cmp dword [esp + 0xb4], 0xfffffffe
je 0x30050815
mov dword [esp + 0x44], 0
jmp 0x3005081d
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0xa0]
cmp dword [eax + 0x20], 0
jne 0x30050a30
mov eax, dword [esp + 0x64]
sub eax, 0x80
je 0x3005095e
sub eax, 0x40
jne 0x30050cdd
test ebx, ebx
je 0x3005086b
cmp dword [esp + 0x4c], 0
jne 0x3005086b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffe
je 0x3005086b
cmp word [esi + 4], 0
jne 0x300508a0
cmp dword [esp + 0xac], 0xfffffffe
jne 0x300508a0
test ebp, ebp
je 0x3005095e
cmp dword [esp + 0x44], 0
jne 0x3005095e
mov edx, dword [esp + 0x1c]
add edx, 0xfffffffe
je 0x3005095e
cmp word [edi + 4], 0
jne 0x300508a0
cmp dword [esp + 0xb4], 0xfffffffe
je 0x3005095e
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 0xa]
test ecx, ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x3c], ecx
jle 0x3005095e
mov edx, dword [esp + 0x38]
lea ecx, [ecx]
test ebx, ebx
je 0x3005090b
mov cx, word [eax]
cmp cx, word [esi]
jne 0x3005090b
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x3005090b
mov cx, word [eax + 4]
cmp cx, word [esi + 4]
jne 0x3005090b
mov ecx, dword [eax + 8]
sub dword [esp + 0x18], 2
and ecx, edx
add esi, 4
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], esi
jne 0x3005090f
cmp dword [esp + 0x3c], 0
jg 0x30050cdd
jmp 0x30050962
test ebp, ebp
je 0x30050946
mov cx, word [eax]
cmp cx, word [edi]
jne 0x30050946
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x30050946
mov cx, word [eax + 4]
cmp cx, word [edi + 4]
jne 0x30050946
mov ecx, dword [eax + 8]
sub dword [esp + 0x1c], 2
and ecx, edx
add edi, 4
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edi
je 0x300508fe
mov ecx, dword [esp + 0x3c]
sub ecx, 1
add eax, 0xc
test ecx, ecx
mov dword [esp + 0x3c], ecx
jg 0x300508c3
jmp 0x30050962
mov edx, dword [esp + 0x38]
test ebx, ebx
je 0x3005096d
cmp dword [esp + 0x4c], 0
je 0x30050980
test ebp, ebp
je 0x30050cdd
cmp dword [esp + 0x44], 0
jne 0x30050cdd
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 8]
test ecx, ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 0x3c], ecx
jle 0x30050cdd
lea ebx, [ebx]
test ebx, ebx
jne 0x300509ad
test ebp, ebp
je 0x30050cdd
jmp 0x300509e4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x300509e0
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x300509e0
mov ecx, dword [eax + 4]
sub dword [esp + 0x18], 1
and ecx, edx
add esi, 2
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], esi
je 0x30050cdd
jmp 0x300509e4
test ebp, ebp
je 0x30050a15
mov cx, word [eax]
cmp cx, word [edi]
jne 0x30050a15
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x30050a15
mov ecx, dword [eax + 4]
sub dword [esp + 0x1c], 1
and ecx, edx
add edi, 2
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edi
je 0x30050cdd
mov ecx, dword [esp + 0x3c]
sub ecx, 1
add eax, 8
test ecx, ecx
mov dword [esp + 0x3c], ecx
jg 0x3005099f
jmp 0x30050cdd
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x24], 0
jne 0x30050a68
mov esi, dword [esp + 0x14]
mov di, word [esi]
xor eax, eax
cmp di, word [esi + 2]
mov edi, dword [esp + 0x10]
sete al
test eax, eax
mov dword [esp + 0x24], eax
je 0x30050a68
mov eax, esi
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp dword [esp + 0x44], 0
mov dword [esp + 0x6c], 0
jne 0x30050a96
mov si, word [edi]
xor eax, eax
cmp si, word [edi + 2]
sete al
test eax, eax
mov dword [esp + 0x6c], eax
je 0x30050a96
add edi, 2
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x64]
sub eax, 0x80
je 0x30050bfd
sub eax, 0x40
jne 0x30050cb9
test ebx, ebx
je 0x30050b4d
cmp dword [esp + 0x4c], 0
jne 0x30050b4d
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
mov dword [esp + 0x64], eax
je 0x30050b4d
mov ecx, dword [esp + 0x14]
mov si, word [ecx + 4]
test si, si
jne 0x30050ae5
cmp dword [esp + 0xac], 0xfffffffe
je 0x30050b4d
mov eax, dword [esp + 0xa0]
mov edx, dword [eax + 0x24]
movzx ecx, word [edx + 0xa]
test ecx, ecx
mov eax, dword [eax + 0x2c]
jle 0x30050b4d
mov edi, dword [esp + 0x14]
mov dx, word [edi]
cmp word [eax], dx
jne 0x30050b1a
mov bx, word [eax + 2]
cmp bx, word [edi + 2]
jne 0x30050b16
cmp word [eax + 4], si
je 0x30050b26
mov ebx, dword [esp + 0x3c]
sub ecx, 1
add eax, 0xc
test ecx, ecx
jg 0x30050b01
jmp 0x30050b4d
mov eax, dword [eax + 8]
and eax, dword [esp + 0x38]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
jne 0x30050b47
mov eax, dword [esp + 0x64]
add edi, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x3c], ebx
test ebp, ebp
je 0x30050bf3
cmp dword [esp + 0x44], 0
jne 0x30050bf3
mov edi, dword [esp + 0x1c]
add edi, 0xfffffffe
je 0x30050bf3
mov ecx, dword [esp + 0x10]
mov si, word [ecx + 4]
test si, si
jne 0x30050b84
cmp dword [esp + 0xb4], 0xfffffffe
je 0x30050bf3
mov eax, dword [esp + 0xa0]
mov edx, dword [eax + 0x24]
movzx ecx, word [edx + 0xa]
test ecx, ecx
mov eax, dword [eax + 0x2c]
jle 0x30050bf3
mov edx, dword [esp + 0x10]
mov dx, word [edx]
cmp word [eax], dx
jne 0x30050bc4
mov bp, word [eax + 2]
mov ebx, dword [esp + 0x10]
cmp bp, word [ebx + 2]
jne 0x30050bb9
cmp word [eax + 4], si
je 0x30050bd0
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0x3c]
sub ecx, 1
add eax, 0xc
test ecx, ecx
jg 0x30050ba0
jmp 0x30050bf3
mov eax, dword [eax + 8]
and eax, dword [esp + 0x38]
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x28], eax
jne 0x30050bed
add ebx, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0x3c]
xor ebp, ebp
test ebx, ebx
mov edi, dword [esp + 0x10]
jne 0x30050c01
jmp 0x30050c5d
test ebx, ebx
je 0x30050c5d
cmp dword [esp + 0x4c], 0
jne 0x30050c5d
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 8]
test ecx, ecx
mov eax, dword [eax + 0x28]
jle 0x30050c5d
mov esi, dword [esp + 0x14]
mov dx, word [esi]
cmp word [eax], dx
jne 0x30050c33
mov bx, word [eax + 2]
cmp bx, word [esi + 2]
je 0x30050c3f
sub ecx, 1
add eax, 8
test ecx, ecx
jg 0x30050c24
jmp 0x30050c5d
mov eax, dword [eax + 4]
and eax, dword [esp + 0x38]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
jne 0x30050c5d
add esi, 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
test ebp, ebp
je 0x30050cb9
cmp dword [esp + 0x44], 0
jne 0x30050cb9
mov eax, dword [esp + 0xa0]
mov edx, dword [eax + 0x24]
movzx ecx, word [edx + 8]
test ecx, ecx
mov eax, dword [eax + 0x28]
jle 0x30050cb9
mov dx, word [edi]
cmp word [eax], dx
jne 0x30050c8f
mov si, word [eax + 2]
cmp si, word [edi + 2]
je 0x30050c9b
sub ecx, 1
add eax, 8
test ecx, ecx
jg 0x30050c80
jmp 0x30050cb9
mov eax, dword [eax + 4]
and eax, dword [esp + 0x38]
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x28], eax
jne 0x30050cb9
add edi, 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x10], edi
cmp dword [esp + 0x24], 0
je 0x30050cca
sub dword [esp + 0x14], 2
add dword [esp + 0x18], 1
cmp dword [esp + 0x6c], 0
je 0x30050cdd
sub edi, 2
add dword [esp + 0x1c], 1
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x20], eax
je 0x300515d2
mov esi, dword [esp + 0x20]
mov dl, byte [esp + 0x21]
mov cl, byte [esp + 0x29]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x3c], esi
mov si, word [esp + 0x20]
cmp si, word [esp + 0x28]
mov al, dl
mov byte [esp + 0x2f], al
mov byte [esp + 0x43], cl
jne 0x30050d2b
cmp dl, 0xb
ja 0x300514c6
cmp dl, 3
jb 0x300514c6
test dl, dl
mov edi, 2
mov edx, 1
jne 0x30050d4a
add dword [esp + 0x14], edi
sub dword [esp + 0x18], edx
or esi, 0xffffffff
mov dword [esp + 0x20], esi
jmp 0x30050d4d
or esi, 0xffffffff
cmp byte [esp + 0x29], 0
jne 0x30050d60
add dword [esp + 0x10], edi
sub dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
cmp dword [esp + 0x5c], 0
je 0x30050d88
cmp al, 1
jne 0x30050d77
add dword [esp + 0x14], edi
sub dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
cmp cl, 1
jne 0x30050d88
add dword [esp + 0x10], edi
sub dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
cmp dword [esp + 0x70], 0
je 0x30050db0
cmp al, 6
jne 0x30050d9f
add dword [esp + 0x14], edi
sub dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
cmp cl, 6
jne 0x30050db0
add dword [esp + 0x10], edi
sub dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
cmp dword [esp + 0x20], esi
je 0x30051628
cmp dword [esp + 0x28], 0xffffffff
je 0x30051628
movzx eax, byte [esp + 0x2f]
add eax, 0xffffffff
cmp eax, 0xa
ja case.0x30050ddd.3
movzx ecx, byte [eax + 0x30051798]
jmp dword [ecx*4 + 0x30051780]
cmp dword [esp + 0x5c], 0
jne 0x30050e06
cmp dword [esp + 0x54], 0
je 0x30050df9
test byte [esp + 0x48], 2
je 0x30050e06
and dword [esp + 0x48], 0xfffffffe
mov dword [esp + 0x54], 3
add dword [esp + 0x14], 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050ddd.3
cmp dword [esp + 0x70], 0
je case.0x30050ddd.3
add dword [esp + 0x14], 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050ddd.3
cmp dword [esp + 0x60], 0
je 0x30050e5d
add dword [esp + 0x14], 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050ddd.3
cmp dword [esp + 0x90], 0
jne case.0x30050ddd.3
cmp byte [esp + 0x43], 6
je case.0x30050ddd.3
cmp dword [esp + 0x58], 0
je 0x30050ea4
add dword [esp + 0x14], 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x58], 3
mov dword [esp + 0x60], 1
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050ddd.3
add dword [esp + 0x14], 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x50], 3
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050ddd.3
mov edx, dword [esp + 0x14]
movzx ecx, byte [esp + 0x20]
add dword [esp + 0x18], 1
mov dword [esp + 0x74], edx
mov edx, dword [0x30066420]
lea eax, [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x28]
mov dx, word [eax + ecx*4 + 2]
lea eax, [eax + ecx*4]
mov cx, word [eax]
mov word [esp + 0x88], cx
mov word [esp + 0x8a], dx
mov dword [esp + 0x80], 2
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050ddd.3
mov bl, byte [esp + 0x23]
mov al, byte [esp + 0x20]
and bl, 0x3f
cmp al, 1
mov ecx, 0xffff0000
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], ecx
ja 0x30051012
mov ebp, dword [esp + 0x14]
lea eax, [ebp - 2]
cmp eax, dword [esp + 0xa8]
jb 0x30051039
mov edi, 2
lea esi, [ebp - 2]
lea ecx, [ecx]
mov dx, word [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.3004ffb6
mov ecx, dword [esp + 0x2c]
and ecx, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x24], ecx
mov al, byte [esp + 0x25]
cmp al, 3
jae 0x30050f92
cmp al, 2
mov ecx, 0xffff0000
je 0x30051039
jmp 0x30050fa1
jne 0x3005100c
mov al, byte [esp + 0x24]
cmp al, 1
ja 0x30050fba
mov ecx, 0xffff0000
add edi, 2
mov eax, ebp
sub eax, edi
sub esi, 2
cmp eax, dword [esp + 0xa8]
mov dword [esp + 0x24], ecx
jae 0x30050f5e
jmp 0x30051039
movzx cx, al
mov al, byte [esp + 0x27]
or ch, 0x22
and al, 0x3f
mov word [esp + 0x24], cx
mov cl, al
and cl, 0xc6
mov byte [esp + 0x34], cl
mov cl, al
and cl, 0xe4
cmp byte [esp + 0x20], 0
mov byte [esp + 0x36], cl
mov ecx, dword [esp + 0x24]
jne 0x30050ffa
and al, 0xc5
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x35], 4
mov byte [esp + 0x37], al
jmp 0x30051040
mov eax, ecx
and eax, 0xff87
mov dword [esp + 0x4c], eax
mov byte [esp + 0x35], 5
jmp 0x30051032
mov dword [esp + 0x4c], ecx
jmp 0x30051039
movzx ax, al
or ah, 0x22
mov byte [esp + 0x35], 3
mov dword [esp + 0x4c], eax
mov al, bl
and al, 0xc6
mov byte [esp + 0x34], al
mov al, bl
and al, 0xe4
mov byte [esp + 0x36], al
and bl, 0xc5
mov byte [esp + 0x37], bl
cmp byte [esp + 0x20], 1
ja 0x3005105e
cmp ecx, 0xffff0000
jne 0x3005105e
mov dword [esp + 0x4c], 0xffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], 0
jmp 0x30051078
mov edx, dword [esp + 0x20]
movzx eax, word [esp + 0x4c]
and edx, 0xffff0000
or edx, eax
mov dword [esp + 0x20], edx
mov byte [esp + 0x23], 2
cmp byte [esp + 0x43], 3
je case.0x30050ddd.3
cmp byte [esp + 0x30], 0
jne 0x30051092
cmp byte [esp + 0x34], 0
je 0x30051092
mov byte [esp + 0x30], 3
cmp byte [esp + 0x31], 0
jne 0x300510a9
mov eax, dword [esp + 0x34]
shr eax, 8
test al, al
je 0x300510a9
mov byte [esp + 0x31], 3
cmp byte [esp + 0x32], 0
jne 0x300510c0
mov eax, dword [esp + 0x34]
shr eax, 0x10
test al, al
je 0x300510c0
mov byte [esp + 0x32], 3
cmp byte [esp + 0x33], 0
jne case.0x30050ddd.3
cmp byte [esp + 0x37], 0
je case.0x30050ddd.3
mov byte [esp + 0x33], 3
movzx eax, byte [esp + 0x43]
add eax, 0xffffffff
cmp eax, 0xa
ja case.0x300510eb.3
movzx ecx, byte [eax + 0x300517c8]
jmp dword [ecx*4 + 0x300517b0]
cmp dword [esp + 0x5c], 0
jne 0x30051114
cmp dword [esp + 0x54], 0
je 0x30051107
test byte [esp + 0x48], 2
je 0x30051114
and dword [esp + 0x48], 0xfffffffe
mov dword [esp + 0x54], 1
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300510eb.3
cmp dword [esp + 0x70], 0
je case.0x300510eb.3
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300510eb.3
cmp dword [esp + 0x60], 0
je 0x3005116b
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300510eb.3
cmp dword [esp + 0x90], 0
jne case.0x300510eb.3
cmp byte [esp + 0x2f], 6
je 0x300511ac
cmp dword [esp + 0x50], 0
mov eax, 1
je 0x30051192
mov dword [esp + 0x50], eax
jmp 0x300511f8
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300510eb.3
cmp dword [esp + 0x50], 0
je 0x300511be
mov eax, 1
mov dword [esp + 0x50], eax
jmp 0x300511e7
cmp dword [esp + 0x58], 0
je 0x300511cf
mov dword [esp + 0x58], 3
jmp 0x300511e2
mov dl, byte [esp + 0x20]
cmp dl, byte [esp + 0x28]
sbb eax, eax
and al, 0xfe
add eax, 3
mov dword [esp + 0x50], eax
mov eax, 1
add dword [esp + 0x14], 2
sub dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xffffffff
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300510eb.3
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + 0x28]
add dword [esp + 0x1c], 1
mov dword [esp + 0x7c], eax
mov eax, dword [0x30066420]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x28]
lea eax, [ecx + edx*4]
mov dx, word [eax]
mov ax, word [eax + 2]
mov word [esp + 0x8c], dx
mov word [esp + 0x8e], ax
mov dword [esp + 0x78], 2
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300510eb.3
mov bl, byte [esp + 0x2b]
mov al, byte [esp + 0x28]
and bl, 0x3f
cmp al, 1
mov esi, 0xffff0000
mov dword [esp + 0x24], 0
mov dword [esp + 0x44], esi
ja 0x300513a4
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffe
cmp ecx, dword [esp + 0xb0]
jb 0x300512d4
mov edi, dword [esp + 0x10]
mov ebp, 2
add edi, 0xfffffffe
mov ax, word [edi]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.3004ffb6
mov esi, dword [esp + 0x4c]
and esi, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x44], esi
mov al, byte [esp + 0x45]
cmp al, 3
jae 0x3005131c
cmp al, 2
mov esi, 0xffff0000
jne 0x3005132b
mov al, byte [esp + 0x27]
mov dl, byte [esp + 0x26]
mov cl, byte [esp + 0x24]
cmp byte [esp + 0x28], 1
ja 0x300513c8
cmp esi, 0xffff0000
jne 0x300513c8
mov dword [esp + 0x24], 0
mov al, byte [esp + 0x27]
mov dl, byte [esp + 0x26]
mov cl, byte [esp + 0x24]
mov dword [esp + 0x3c], 0xffff
mov dword [esp + 0x28], esi
jmp 0x300513e2
jne 0x3005139b
mov al, byte [esp + 0x44]
cmp al, 1
ja 0x3005134a
mov esi, 0xffff0000
mov ecx, dword [esp + 0x10]
add ebp, 2
sub ecx, ebp
sub edi, 2
cmp ecx, dword [esp + 0xb0]
mov dword [esp + 0x44], esi
jae 0x300512a6
jmp 0x300512d4
movzx dx, al
mov al, byte [esp + 0x47]
or dh, 0x22
and al, 0x3f
mov cl, al
and cl, 0xc6
mov word [esp + 0x44], dx
mov esi, dword [esp + 0x44]
mov dl, al
and dl, 0xe4
cmp byte [esp + 0x28], 0
jne 0x30051381
mov dword [esp + 0x3c], esi
mov byte [esp + 0x25], 4
and al, 0xc5
jmp 0x300512eb
mov eax, esi
and eax, 0xff87
and bl, 0xc5
mov dword [esp + 0x3c], eax
mov byte [esp + 0x25], 5
mov al, bl
jmp 0x300512e0
mov dword [esp + 0x3c], esi
jmp 0x300512d4
movzx ax, al
or ah, 0x22
mov cl, bl
mov dl, bl
and cl, 0xc6
and dl, 0xe4
and bl, 0xc5
mov byte [esp + 0x25], 3
mov dword [esp + 0x3c], eax
mov al, bl
jmp 0x300512e0
mov esi, dword [esp + 0x28]
movzx edi, word [esp + 0x3c]
and esi, 0xffff0000
or esi, edi
mov dword [esp + 0x28], esi
mov byte [esp + 0x2b], 2
cmp byte [esp + 0x2f], 3
je 0x30051432
cmp byte [esp + 0x30], 0
jne 0x300513f9
test cl, cl
je 0x300513f9
mov byte [esp + 0x30], 1
cmp byte [esp + 0x31], 0
jne 0x30051410
mov ecx, dword [esp + 0x24]
shr ecx, 8
test cl, cl
je 0x30051410
mov byte [esp + 0x31], 1
cmp byte [esp + 0x32], 0
jne 0x30051420
test dl, dl
je 0x30051420
mov byte [esp + 0x32], 1
cmp byte [esp + 0x33], 0
jne case.0x300510eb.3
test al, al
je case.0x300510eb.3
mov byte [esp + 0x33], 1
jmp case.0x300510eb.3
cmp byte [esp + 0x30], 0
jne 0x3005144c
mov bl, byte [esp + 0x34]
cmp bl, cl
je 0x3005144c
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x30], cl
cmp byte [esp + 0x31], 0
jne 0x3005146a
mov cl, byte [esp + 0x35]
mov bl, byte [esp + 0x25]
cmp cl, bl
je 0x3005146a
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x31], cl
cmp byte [esp + 0x32], 0
jne 0x30051484
mov cl, byte [esp + 0x36]
cmp cl, dl
je 0x30051484
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x32], cl
cmp byte [esp + 0x33], 0
jne case.0x300510eb.3
mov cl, byte [esp + 0x37]
cmp cl, al
je case.0x300510eb.3
setae al
lea eax, [eax + eax + 1]
mov byte [esp + 0x33], al
or eax, 0xffffffff
cmp dword [esp + 0x20], eax
je 0x30051628
cmp dword [esp + 0x28], eax
je 0x30051628
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
cmp cx, ax
jne 0x300516b2
test byte [esp + 0x48], 3
je 0x300515a7
mov al, byte [esp + 0x22]
mov bl, byte [esp + 0x2a]
cmp al, bl
mov byte [esp + 0x2f], al
je 0x300515a7
mov eax, dword [esp + 0x18]
add eax, 0xffffffff
je 0x3005153b
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ax, word [esi + 2]
test ax, ax
jne 0x3005150b
cmp ebp, 0xfffffffe
je 0x30051533
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.3004ffb6
add esp, 8
cmp byte [esp + 0x69], 1
jne 0x30051533
mov dl, byte [esp + 0x6a]
add byte [esp + 0x2f], dl
sub edi, 1
add esi, 2
cmp edi, 1
jne 0x300514fd
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x1c]
add eax, 0xffffffff
je 0x3005158f
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0xb4]
mov esi, dword [esp + 0x10]
lea ecx, [ecx]
mov ax, word [esi + 2]
test ax, ax
jne 0x30051563
cmp ebp, 0xfffffffe
je 0x30051587
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.3004ffb6
add esp, 8
cmp byte [esp + 0x69], 1
jne 0x30051587
add bl, byte [esp + 0x6a]
sub edi, 1
add esi, 2
cmp edi, 1
jne 0x30051555
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov al, byte [esp + 0x2f]
cmp al, bl
je 0x300515a7
sbb eax, eax
and al, 0xfe
add eax, 3
and dword [esp + 0x48], 0xfffffffe
mov dword [esp + 0x54], eax
test byte [esp + 0x48], 4
je 0x300515d2
mov al, byte [esp + 0x2b]
mov cl, byte [esp + 0x23]
and al, 0x3f
and cl, 0x3f
cmp cl, al
je 0x300515d2
sbb eax, eax
and al, 0xfe
add eax, 3
and dword [esp + 0x48], 0xfffffffb
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x74]
xor ecx, ecx
cmp eax, ecx
mov edx, 1
je 0x300515f2
sub dword [esp + 0x80], edx
jne 0x300515f2
mov dword [esp + 0x14], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x7c]
cmp eax, ecx
je 0x30051608
sub dword [esp + 0x78], edx
jne 0x30051608
mov dword [esp + 0x10], eax
mov dword [esp + 0x7c], ecx
sub dword [esp + 0x18], edx
sub dword [esp + 0x1c], edx
mov eax, 2
add dword [esp + 0x14], eax
add dword [esp + 0x10], eax
or eax, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
cmp dword [esp + 0x18], 0
jne 0x300506f4
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x300516ed
cmp word [edi], 0
jne 0x30051657
cmp dword [esp + 0xb4], 0xfffffffe
je 0x300516ed
mov edx, dword [esp + 0xb4]
mov ebx, edi
mov eax, 1
mov esi, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x58]
push esi
mov esi, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x84]
push esi
mov esi, dword [esp + 0xd0]
push esi
mov esi, dword [esp + 0x78]
push esi
lea esi, [esp + 0x40]
push esi
push eax
push edx
push ebx
push ecx
call fcn.300503de
add esp, 0x34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
sbb eax, eax
and al, 0xfe
pop edi
pop esi
pop ebp
pop ebx
add eax, 3
add esp, 0x8c
ret
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x30051637
cmp word [ebx], 0
jne 0x300516e3
cmp edx, 0xfffffffe
je 0x30051637
mov eax, 3
jmp 0x30051665
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x30051764
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x30051764
cmp dword [esp + 0x30], eax
je 0x3005173a
cmp dword [esp + 0x5c], eax
jne 0x3005171c
mov al, byte [esp + 0x30]
test al, al
jne 0x3005172c
mov al, byte [esp + 0x31]
test al, al
jne 0x3005172c
mov al, byte [esp + 0x32]
test al, al
jne 0x3005172c
mov al, byte [esp + 0x33]
test al, al
je 0x3005173a
pop edi
pop esi
pop ebp
movzx eax, al
pop ebx
add esp, 0x8c
ret
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x30051764
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x30051764
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x8c
ret
push 0x57
call dword [fcn.300012c8]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret