Function at 0x30050684
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 0x3005191a
cmp ecx, esi
je 0x3005191a
cmp eax, esi
je 0x3005191a
mov edx, dword [esp + 0xa4]
test edx, 0xbffceff8
je 0x3005070f
push 0x3ec
call dword [sym.imp.KERNEL32.dll_SetLastError]
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 0x300507bd
cmp dword [esp + 0xac], esi
je 0x3005079b
cmp word [ecx], si
jne 0x30050739
cmp dword [esp + 0xac], 0xfffffffe
je 0x3005077a
cmp ebx, esi
je 0x3005077a
mov ax, word [edi]
cmp ax, si
jne 0x3005074f
cmp dword [esp + 0xb4], 0xfffffffe
je 0x3005077a
cmp word [ecx], ax
jne 0x3005077a
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 0x3005072a
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
jmp 0x3005079b
cmp dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
je 0x3005079b
cmp word [ecx], si
jne 0x300507b6
cmp dword [esp + 0xac], 0xfffffffe
jne 0x300507b6
cmp ebx, esi
je 0x3005190a
cmp word [edi], si
jne 0x300507b6
cmp dword [esp + 0xb4], 0xfffffffe
je 0x3005190a
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.0x30050826
jmp dword [ecx*4 + 0x30051930]
mov dword [esp + 0x38], edi
jmp 0x3005083b
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.0x30050826
mov dword [esp + 0x38], 0xff00ffff
jmp case.default.0x30050826
mov dword [esp + 0x38], 0xe700ffff
mov ecx, edx
and ecx, 0x30000
cmp ecx, 0x10000
je 0x300508a4
cmp ecx, 0x20000
je 0x30050892
cmp ecx, 0x30000
jne 0x300508a9
and byte [esp + 0x3b], 0xde
test dl, 1
je 0x300508a9
and al, 0xfb
mov dword [esp + 0x48], eax
jmp 0x300508a9
and byte [esp + 0x3b], 0xfe
test dl, 1
je 0x300508a9
and al, 0xfb
mov dword [esp + 0x48], eax
jmp 0x300508a9
and byte [esp + 0x3b], 0xdf
cmp dword [esp + 0x18], esi
je 0x300517f3
nop
mov ebx, dword [esp + 0x14]
mov ax, word [ebx]
test ax, ax
mov edx, dword [esp + 0xac]
jne 0x300508d0
cmp edx, 0xfffffffe
je 0x30051884
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x10]
je 0x30051888
mov si, word [edi]
test si, si
jne 0x300508f5
cmp dword [esp + 0xb4], 0xfffffffe
je 0x30051888
or ebx, 0xffffffff
cmp dword [esp + 0x20], ebx
jne 0x30050914
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.30050176
mov edx, dword [esp + 0x40]
add esp, 8
and dword [esp + 0x20], edx
cmp dword [esp + 0x28], ebx
jne 0x30050930
lea eax, [esp + 0x28]
push eax
push esi
call fcn.30050176
mov ecx, dword [esp + 0x40]
add esp, 8
and dword [esp + 0x28], ecx
cmp dword [esp + 0x94], 0
je 0x30050e9d
test byte [esp + 0x23], 0xc0
jne 0x30050954
mov eax, dword [esp + 0x28]
shr eax, 0x18
test al, 0xc0
je 0x30050e9d
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 0x30050981
mov dword [esp + 0x64], ebp
mov edx, dword [esp + 0x18]
add edx, 0xffffffff
mov esi, dword [esp + 0x14]
je 0x300509a9
cmp word [esi + 2], 0
jne 0x3005099f
cmp dword [esp + 0xac], 0xfffffffe
je 0x300509a9
mov dword [esp + 0x4c], 0
jmp 0x300509b1
mov dword [esp + 0x4c], 1
mov ecx, dword [esp + 0x1c]
add ecx, 0xffffffff
je 0x300509d5
cmp word [edi + 2], 0
jne 0x300509cb
cmp dword [esp + 0xb4], 0xfffffffe
je 0x300509d5
mov dword [esp + 0x44], 0
jmp 0x300509dd
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0xa0]
cmp dword [eax + 0x20], 0
jne 0x30050bf0
mov eax, dword [esp + 0x64]
sub eax, 0x80
je 0x30050b1e
sub eax, 0x40
jne 0x30050e9d
test ebx, ebx
je 0x30050a2b
cmp dword [esp + 0x4c], 0
jne 0x30050a2b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffffe
je 0x30050a2b
cmp word [esi + 4], 0
jne 0x30050a60
cmp dword [esp + 0xac], 0xfffffffe
jne 0x30050a60
test ebp, ebp
je 0x30050b1e
cmp dword [esp + 0x44], 0
jne 0x30050b1e
mov edx, dword [esp + 0x1c]
add edx, 0xfffffffe
je 0x30050b1e
cmp word [edi + 4], 0
jne 0x30050a60
cmp dword [esp + 0xb4], 0xfffffffe
je 0x30050b1e
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 0x30050b1e
mov edx, dword [esp + 0x38]
lea ecx, [ecx]
test ebx, ebx
je 0x30050acb
mov cx, word [eax]
cmp cx, word [esi]
jne 0x30050acb
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x30050acb
mov cx, word [eax + 4]
cmp cx, word [esi + 4]
jne 0x30050acb
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 0x30050acf
cmp dword [esp + 0x3c], 0
jg 0x30050e9d
jmp 0x30050b22
test ebp, ebp
je 0x30050b06
mov cx, word [eax]
cmp cx, word [edi]
jne 0x30050b06
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x30050b06
mov cx, word [eax + 4]
cmp cx, word [edi + 4]
jne 0x30050b06
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 0x30050abe
mov ecx, dword [esp + 0x3c]
sub ecx, 1
add eax, 0xc
test ecx, ecx
mov dword [esp + 0x3c], ecx
jg 0x30050a83
jmp 0x30050b22
mov edx, dword [esp + 0x38]
test ebx, ebx
je 0x30050b2d
cmp dword [esp + 0x4c], 0
je 0x30050b40
test ebp, ebp
je 0x30050e9d
cmp dword [esp + 0x44], 0
jne 0x30050e9d
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 0x30050e9d
lea ebx, [ebx]
test ebx, ebx
jne 0x30050b6d
test ebp, ebp
je 0x30050e9d
jmp 0x30050ba4
mov cx, word [eax]
cmp cx, word [esi]
jne 0x30050ba0
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x30050ba0
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 0x30050e9d
jmp 0x30050ba4
test ebp, ebp
je 0x30050bd5
mov cx, word [eax]
cmp cx, word [edi]
jne 0x30050bd5
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x30050bd5
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 0x30050e9d
mov ecx, dword [esp + 0x3c]
sub ecx, 1
add eax, 8
test ecx, ecx
mov dword [esp + 0x3c], ecx
jg 0x30050b5f
jmp 0x30050e9d
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x24], 0
jne 0x30050c28
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 0x30050c28
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 0x30050c56
mov si, word [edi]
xor eax, eax
cmp si, word [edi + 2]
sete al
test eax, eax
mov dword [esp + 0x6c], eax
je 0x30050c56
add edi, 2
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x64]
sub eax, 0x80
je 0x30050dbd
sub eax, 0x40
jne 0x30050e79
test ebx, ebx
je 0x30050d0d
cmp dword [esp + 0x4c], 0
jne 0x30050d0d
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
mov dword [esp + 0x64], eax
je 0x30050d0d
mov ecx, dword [esp + 0x14]
mov si, word [ecx + 4]
test si, si
jne 0x30050ca5
cmp dword [esp + 0xac], 0xfffffffe
je 0x30050d0d
mov eax, dword [esp + 0xa0]
mov edx, dword [eax + 0x24]
movzx ecx, word [edx + 0xa]
test ecx, ecx
mov eax, dword [eax + 0x2c]
jle 0x30050d0d
mov edi, dword [esp + 0x14]
mov dx, word [edi]
cmp word [eax], dx
jne 0x30050cda
mov bx, word [eax + 2]
cmp bx, word [edi + 2]
jne 0x30050cd6
cmp word [eax + 4], si
je 0x30050ce6
mov ebx, dword [esp + 0x3c]
sub ecx, 1
add eax, 0xc
test ecx, ecx
jg 0x30050cc1
jmp 0x30050d0d
mov eax, dword [eax + 8]
and eax, dword [esp + 0x38]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
jne 0x30050d07
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 0x30050db3
cmp dword [esp + 0x44], 0
jne 0x30050db3
mov edi, dword [esp + 0x1c]
add edi, 0xfffffffe
je 0x30050db3
mov ecx, dword [esp + 0x10]
mov si, word [ecx + 4]
test si, si
jne 0x30050d44
cmp dword [esp + 0xb4], 0xfffffffe
je 0x30050db3
mov eax, dword [esp + 0xa0]
mov edx, dword [eax + 0x24]
movzx ecx, word [edx + 0xa]
test ecx, ecx
mov eax, dword [eax + 0x2c]
jle 0x30050db3
mov edx, dword [esp + 0x10]
mov dx, word [edx]
cmp word [eax], dx
jne 0x30050d84
mov bp, word [eax + 2]
mov ebx, dword [esp + 0x10]
cmp bp, word [ebx + 2]
jne 0x30050d79
cmp word [eax + 4], si
je 0x30050d90
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0x3c]
sub ecx, 1
add eax, 0xc
test ecx, ecx
jg 0x30050d60
jmp 0x30050db3
mov eax, dword [eax + 8]
and eax, dword [esp + 0x38]
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x28], eax
jne 0x30050dad
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 0x30050dc1
jmp 0x30050e1d
test ebx, ebx
je 0x30050e1d
cmp dword [esp + 0x4c], 0
jne 0x30050e1d
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x24]
movzx ecx, word [ecx + 8]
test ecx, ecx
mov eax, dword [eax + 0x28]
jle 0x30050e1d
mov esi, dword [esp + 0x14]
mov dx, word [esi]
cmp word [eax], dx
jne 0x30050df3
mov bx, word [eax + 2]
cmp bx, word [esi + 2]
je 0x30050dff
sub ecx, 1
add eax, 8
test ecx, ecx
jg 0x30050de4
jmp 0x30050e1d
mov eax, dword [eax + 4]
and eax, dword [esp + 0x38]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
jne 0x30050e1d
add esi, 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
test ebp, ebp
je 0x30050e79
cmp dword [esp + 0x44], 0
jne 0x30050e79
mov eax, dword [esp + 0xa0]
mov edx, dword [eax + 0x24]
movzx ecx, word [edx + 8]
test ecx, ecx
mov eax, dword [eax + 0x28]
jle 0x30050e79
mov dx, word [edi]
cmp word [eax], dx
jne 0x30050e4f
mov si, word [eax + 2]
cmp si, word [edi + 2]
je 0x30050e5b
sub ecx, 1
add eax, 8
test ecx, ecx
jg 0x30050e40
jmp 0x30050e79
mov eax, dword [eax + 4]
and eax, dword [esp + 0x38]
cmp dword [esp + 0x6c], 0
mov dword [esp + 0x28], eax
jne 0x30050e79
add edi, 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x10], edi
cmp dword [esp + 0x24], 0
je 0x30050e8a
sub dword [esp + 0x14], 2
add dword [esp + 0x18], 1
cmp dword [esp + 0x6c], 0
je 0x30050e9d
sub edi, 2
add dword [esp + 0x1c], 1
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x20], eax
je 0x30051792
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 0x30050eeb
cmp dl, 0xb
ja 0x30051686
cmp dl, 3
jb 0x30051686
test dl, dl
mov edi, 2
mov edx, 1
jne 0x30050f0a
add dword [esp + 0x14], edi
sub dword [esp + 0x18], edx
or esi, 0xffffffff
mov dword [esp + 0x20], esi
jmp 0x30050f0d
or esi, 0xffffffff
cmp byte [esp + 0x29], 0
jne 0x30050f20
add dword [esp + 0x10], edi
sub dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
cmp dword [esp + 0x5c], 0
je 0x30050f48
cmp al, 1
jne 0x30050f37
add dword [esp + 0x14], edi
sub dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
cmp cl, 1
jne 0x30050f48
add dword [esp + 0x10], edi
sub dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
cmp dword [esp + 0x70], 0
je 0x30050f70
cmp al, 6
jne 0x30050f5f
add dword [esp + 0x14], edi
sub dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
cmp cl, 6
jne 0x30050f70
add dword [esp + 0x10], edi
sub dword [esp + 0x1c], edx
mov dword [esp + 0x28], esi
cmp dword [esp + 0x20], esi
je 0x300517e8
cmp dword [esp + 0x28], 0xffffffff
je 0x300517e8
movzx eax, byte [esp + 0x2f]
add eax, 0xffffffff
cmp eax, 0xa
ja case.0x30050f9d.3
movzx ecx, byte [eax + 0x30051958]
jmp dword [ecx*4 + 0x30051940]
cmp dword [esp + 0x5c], 0
jne 0x30050fc6
cmp dword [esp + 0x54], 0
je 0x30050fb9
test byte [esp + 0x48], 2
je 0x30050fc6
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.0x30050f9d.3
cmp dword [esp + 0x70], 0
je case.0x30050f9d.3
add dword [esp + 0x14], 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050f9d.3
cmp dword [esp + 0x60], 0
je 0x3005101d
add dword [esp + 0x14], 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050f9d.3
cmp dword [esp + 0x90], 0
jne case.0x30050f9d.3
cmp byte [esp + 0x43], 6
je case.0x30050f9d.3
cmp dword [esp + 0x58], 0
je 0x30051064
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.0x30050f9d.3
add dword [esp + 0x14], 2
sub dword [esp + 0x18], 1
mov dword [esp + 0x50], 3
mov dword [esp + 0x20], 0xffffffff
jmp case.0x30050f9d.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.0x30050f9d.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 0x300511d2
mov ebp, dword [esp + 0x14]
lea eax, [ebp - 2]
cmp eax, dword [esp + 0xa8]
jb 0x300511f9
mov edi, 2
lea esi, [ebp - 2]
lea ecx, [ecx]
mov dx, word [esi]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.30050176
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 0x30051152
cmp al, 2
mov ecx, 0xffff0000
je 0x300511f9
jmp 0x30051161
jne 0x300511cc
mov al, byte [esp + 0x24]
cmp al, 1
ja 0x3005117a
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 0x3005111e
jmp 0x300511f9
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 0x300511ba
and al, 0xc5
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x35], 4
mov byte [esp + 0x37], al
jmp 0x30051200
mov eax, ecx
and eax, 0xff87
mov dword [esp + 0x4c], eax
mov byte [esp + 0x35], 5
jmp 0x300511f2
mov dword [esp + 0x4c], ecx
jmp 0x300511f9
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 0x3005121e
cmp ecx, 0xffff0000
jne 0x3005121e
mov dword [esp + 0x4c], 0xffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], 0
jmp 0x30051238
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.0x30050f9d.3
cmp byte [esp + 0x30], 0
jne 0x30051252
cmp byte [esp + 0x34], 0
je 0x30051252
mov byte [esp + 0x30], 3
cmp byte [esp + 0x31], 0
jne 0x30051269
mov eax, dword [esp + 0x34]
shr eax, 8
test al, al
je 0x30051269
mov byte [esp + 0x31], 3
cmp byte [esp + 0x32], 0
jne 0x30051280
mov eax, dword [esp + 0x34]
shr eax, 0x10
test al, al
je 0x30051280
mov byte [esp + 0x32], 3
cmp byte [esp + 0x33], 0
jne case.0x30050f9d.3
cmp byte [esp + 0x37], 0
je case.0x30050f9d.3
mov byte [esp + 0x33], 3
movzx eax, byte [esp + 0x43]
add eax, 0xffffffff
cmp eax, 0xa
ja case.0x300512ab.3
movzx ecx, byte [eax + 0x30051988]
jmp dword [ecx*4 + 0x30051970]
cmp dword [esp + 0x5c], 0
jne 0x300512d4
cmp dword [esp + 0x54], 0
je 0x300512c7
test byte [esp + 0x48], 2
je 0x300512d4
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.0x300512ab.3
cmp dword [esp + 0x70], 0
je case.0x300512ab.3
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300512ab.3
cmp dword [esp + 0x60], 0
je 0x3005132b
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300512ab.3
cmp dword [esp + 0x90], 0
jne case.0x300512ab.3
cmp byte [esp + 0x2f], 6
je 0x3005136c
cmp dword [esp + 0x50], 0
mov eax, 1
je 0x30051352
mov dword [esp + 0x50], eax
jmp 0x300513b8
add dword [esp + 0x10], 2
sub dword [esp + 0x1c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], 0xffffffff
jmp case.0x300512ab.3
cmp dword [esp + 0x50], 0
je 0x3005137e
mov eax, 1
mov dword [esp + 0x50], eax
jmp 0x300513a7
cmp dword [esp + 0x58], 0
je 0x3005138f
mov dword [esp + 0x58], 3
jmp 0x300513a2
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.0x300512ab.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.0x300512ab.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 0x30051564
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffe
cmp ecx, dword [esp + 0xb0]
jb 0x30051494
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.30050176
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 0x300514dc
cmp al, 2
mov esi, 0xffff0000
jne 0x300514eb
mov al, byte [esp + 0x27]
mov dl, byte [esp + 0x26]
mov cl, byte [esp + 0x24]
cmp byte [esp + 0x28], 1
ja 0x30051588
cmp esi, 0xffff0000
jne 0x30051588
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 0x300515a2
jne 0x3005155b
mov al, byte [esp + 0x44]
cmp al, 1
ja 0x3005150a
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 0x30051466
jmp 0x30051494
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 0x30051541
mov dword [esp + 0x3c], esi
mov byte [esp + 0x25], 4
and al, 0xc5
jmp 0x300514ab
mov eax, esi
and eax, 0xff87
and bl, 0xc5
mov dword [esp + 0x3c], eax
mov byte [esp + 0x25], 5
mov al, bl
jmp 0x300514a0
mov dword [esp + 0x3c], esi
jmp 0x30051494
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 0x300514a0
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 0x300515f2
cmp byte [esp + 0x30], 0
jne 0x300515b9
test cl, cl
je 0x300515b9
mov byte [esp + 0x30], 1
cmp byte [esp + 0x31], 0
jne 0x300515d0
mov ecx, dword [esp + 0x24]
shr ecx, 8
test cl, cl
je 0x300515d0
mov byte [esp + 0x31], 1
cmp byte [esp + 0x32], 0
jne 0x300515e0
test dl, dl
je 0x300515e0
mov byte [esp + 0x32], 1
cmp byte [esp + 0x33], 0
jne case.0x300512ab.3
test al, al
je case.0x300512ab.3
mov byte [esp + 0x33], 1
jmp case.0x300512ab.3
cmp byte [esp + 0x30], 0
jne 0x3005160c
mov bl, byte [esp + 0x34]
cmp bl, cl
je 0x3005160c
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x30], cl
cmp byte [esp + 0x31], 0
jne 0x3005162a
mov cl, byte [esp + 0x35]
mov bl, byte [esp + 0x25]
cmp cl, bl
je 0x3005162a
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x31], cl
cmp byte [esp + 0x32], 0
jne 0x30051644
mov cl, byte [esp + 0x36]
cmp cl, dl
je 0x30051644
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x32], cl
cmp byte [esp + 0x33], 0
jne case.0x300512ab.3
mov cl, byte [esp + 0x37]
cmp cl, al
je case.0x300512ab.3
setae al
lea eax, [eax + eax + 1]
mov byte [esp + 0x33], al
or eax, 0xffffffff
cmp dword [esp + 0x20], eax
je 0x300517e8
cmp dword [esp + 0x28], eax
je 0x300517e8
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
cmp cx, ax
jne 0x30051872
test byte [esp + 0x48], 3
je 0x30051767
mov al, byte [esp + 0x22]
mov bl, byte [esp + 0x2a]
cmp al, bl
mov byte [esp + 0x2f], al
je 0x30051767
mov eax, dword [esp + 0x18]
add eax, 0xffffffff
je 0x300516fb
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ax, word [esi + 2]
test ax, ax
jne 0x300516cb
cmp ebp, 0xfffffffe
je 0x300516f3
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.30050176
add esp, 8
cmp byte [esp + 0x69], 1
jne 0x300516f3
mov dl, byte [esp + 0x6a]
add byte [esp + 0x2f], dl
sub edi, 1
add esi, 2
cmp edi, 1
jne 0x300516bd
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x1c]
add eax, 0xffffffff
je 0x3005174f
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 0x30051723
cmp ebp, 0xfffffffe
je 0x30051747
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.30050176
add esp, 8
cmp byte [esp + 0x69], 1
jne 0x30051747
add bl, byte [esp + 0x6a]
sub edi, 1
add esi, 2
cmp edi, 1
jne 0x30051715
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov al, byte [esp + 0x2f]
cmp al, bl
je 0x30051767
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 0x30051792
mov al, byte [esp + 0x2b]
mov cl, byte [esp + 0x23]
and al, 0x3f
and cl, 0x3f
cmp cl, al
je 0x30051792
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 0x300517b2
sub dword [esp + 0x80], edx
jne 0x300517b2
mov dword [esp + 0x14], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x7c]
cmp eax, ecx
je 0x300517c8
sub dword [esp + 0x78], edx
jne 0x300517c8
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 0x300508b4
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x300518ad
cmp word [edi], 0
jne 0x30051817
cmp dword [esp + 0xb4], 0xfffffffe
je 0x300518ad
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.3005059e
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 0x300517f7
cmp word [ebx], 0
jne 0x300518a3
cmp edx, 0xfffffffe
je 0x300517f7
mov eax, 3
jmp 0x30051825
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x30051924
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x30051924
cmp dword [esp + 0x30], eax
je 0x300518fa
cmp dword [esp + 0x5c], eax
jne 0x300518dc
mov al, byte [esp + 0x30]
test al, al
jne 0x300518ec
mov al, byte [esp + 0x31]
test al, al
jne 0x300518ec
mov al, byte [esp + 0x32]
test al, al
jne 0x300518ec
mov al, byte [esp + 0x33]
test al, al
je 0x300518fa
pop edi
pop esi
pop ebp
movzx eax, al
pop ebx
add esp, 0x8c
ret
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x30051924
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x30051924
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x8c
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret