Function at 0x435c40
Capabilities:
Check for peb beingdebugged flag
Check for time delay via gettickcount
Get keyboard layout
Read file on windows
Read pipe
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d7ad6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x819c
call fcn.004d0b30
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], 0x103
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x5c], esi
mov byte [esp + 0x12], 0
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov eax, dword [ebp + 8]
mov dword [esp + 0x81b4], esi
mov al, byte [eax + 2]
mov cl, 4
cmp cl, al
sbb ebx, ebx
and ebx, dword [0x515e20]
mov dl, 5
cmp dl, al
sbb edi, edi
and edi, dword [0x515e24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], edi
cmp ebx, esi
je 0x435cd4
mov ecx, ebx
call fcn.0041bc60
cmp edi, esi
je 0x435cdf
mov ecx, edi
call fcn.0041bc60
mov eax, dword [ebp + 8]
cmp word [eax], 0x3e
jne 0x435e4f
mov eax, dword [0x51949c]
mov ecx, dword [0x515e68]
call fcn.004a75a0
test eax, eax
push str.___7_7
setne byte [esp + 0x24]
call fcn.0049fc00
mov esi, dword [0x515e68]
add esp, 4
mov edx, eax
call fcn.004498e0
test eax, eax
je 0x435d85
add eax, 0x10
push 0x63
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.004c67b5
xor edx, edx
add esp, 0xc
lea eax, [esp + 0xd8]
mov word [esp + 0x19e], dx
call fcn.0040f110
test al, al
je 0x435d67
push 0x10
lea eax, [esp + 0xdc]
push 0
push eax
call fcn.004c6bff
add esp, 0xc
jmp 0x435d77
lea ecx, [esp + 0xd8]
push ecx
call fcn.004c6191
add esp, 4
imul eax, eax, 0x3e8
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x435d9a
mov al, byte [ebx + 0x17]
test al, al
jne 0x435d96
mov edx, dword [ebx + 0xc]
mov al, byte [edx + 0x17]
cmp al, 2
je 0x435daf
test edi, edi
je 0x435df1
mov al, byte [edi + 0x17]
test al, al
jne 0x435dab
mov eax, dword [edi + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
jne 0x435df1
cmp byte [esp + 0x20], 0
je 0x43689f
push 0x4ebe64
call fcn.0049fc00
mov ecx, dword [0x5166e0]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push eax
push ecx
call fcn.004aa2a0
mov ecx, dword [esp + 0x81ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 8]
mov cl, 3
cmp cl, byte [edx + 2]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x3c]
push eax
push ebx
sbb eax, eax
and eax, dword [0x515e1c]
mov bl, cl
push eax
mov eax, dword [0x515e68]
push 1
push ecx
lea edx, [esp + 0x34]
push edx
test bl, bl
sete cl
push eax
mov eax, dword [0x515e64]
movzx edx, cl
mov ecx, dword [0x515e60]
push edx
push eax
push 0
push 0x516ea8
call fcn.00430130
test eax, eax
jne 0x435e4d
test bl, bl
jmp 0x435db4
xor esi, esi
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5d
jne 0x435f9b
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov eax, dword [0x515e60]
push esi
push esi
call fcn.00414250
add esp, 0xc
mov byte [esp + 0x1b], al
test al, al
jne 0x435efb
mov eax, dword [0x515e60]
push esi
lea ebx, [esp + 0x78]
call fcn.00450590
add esp, 4
mov dword [esp + 0x48], eax
test eax, eax
jne 0x435ec3
push 1
push eax
mov eax, dword [0x5166e0]
push 0xffffffffffffffff
push 0x4e6784
push eax
call fcn.004aa2a0
mov ecx, dword [esp + 0x81ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xc
jl 0x435ecd
cmp eax, 0x2b
jle 0x435efb
mov ecx, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e6784
push ecx
call fcn.004aa2a0
mov ecx, dword [esp + 0x81ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [0x515e64]
movzx eax, word [edi]
xor ebx, ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x6c], 1
mov byte [esp + 0x11], 1
mov dword [esp + 0x20], ebx
cmp ax, bx
je 0x435f84
movzx esi, ax
test esi, 0xffffff80
jne 0x435f3d
push 2
push esi
call fcn.004c613e
add esp, 8
cmp eax, ebx
je 0x435f3d
and esi, 0xffffffdf
movzx eax, si
cmp eax, 0x44
je 0x435f73
cmp eax, 0x4c
je 0x435f6d
cmp eax, 0x54
jne 0x435f78
lea esi, [edi + 2]
mov byte [esp + 0x11], 0
call fcn.0041bc20
fmul qword [0x50a098]
call fcn.004d3dc0
mov dword [esp + 0x20], eax
jmp 0x435f78
mov dword [esp + 0x6c], ebx
jmp 0x435f78
mov byte [esp + 0x13], 1
movzx eax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x435f20
lea edx, [esp + 0x1a0]
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xc8], edx
jmp 0x435ffa
mov ecx, dword [0x515e60]
mov edx, dword [0x515e68]
cmp eax, 0x3e
je 0x435fb6
cmp eax, 0x5c
je 0x435fbb
cmp word [edx], si
jne 0x435fc0
cmp eax, 0x5c
jne 0x435ff1
cmp word [ecx], si
je 0x435ff1
mov byte [esp + 0x11], 0
mov esi, ecx
cmp eax, 0x5c
je 0x435fce
mov esi, edx
call fcn.0041bc20
fmul qword [0x50a098]
call fcn.004d3dc0
mov dword [esp + 0x20], eax
cmp eax, 1
jge 0x435ffa
mov dword [esp + 0x20], 0x1f4
jmp 0x435ffa
mov byte [esp + 0x11], 1
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x3e
je 0x436019
mov eax, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e1a5c
push eax
call fcn.004aa2a0
cmp word [esi], 0x5c
jne 0x436034
mov edi, 1
mov ecx, esi
call fcn.00422540
mov byte [esp + 0x1a], 1
cmp eax, edi
je 0x436039
mov byte [esp + 0x1a], 0
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov eax, 0x4001
lea esi, [esp + 0x1a0]
cmp byte [ecx + 2], bl
jbe 0x4360b7
test eax, eax
jne 0x43605d
mov dword [esp + ebx*4 + 0x78], 0x4e1a4c
jmp 0x4360ab
mov ecx, dword [ebx*4 + 0x515e60]
lea edi, [eax - 1]
push edi
push ecx
push esi
mov dword [esp + ebx*4 + 0x84], esi
call fcn.004c67b5
add esp, 0xc
xor edx, edx
mov eax, esi
mov word [esi + edi*2], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436084
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov ecx, esi
lea edx, [esp + 0x1a0]
sub ecx, edx
sar ecx, 1
mov eax, 0x4001
sub eax, ecx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 2]
inc ebx
cmp ebx, edx
jl 0x43604f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x60], eax
mov esi, dword [0x51161c]
mov eax, dword [ebp + 8]
movzx eax, word [eax]
add eax, 0xffffffc2
cmp eax, 0x3c
ja case.0x4360e0.63
movzx ecx, byte [eax + 0x436968]
jmp dword [ecx*4 + 0x436948]
mov edx, dword [ebp + 8]
mov al, byte [edx + 2]
mov ecx, dword [esp + 0x88]
cmp al, 4
ja 0x4360fd
mov ecx, 0x4e1a4c
mov ebx, dword [esp + 0x84]
cmp al, 3
ja 0x43610d
mov ebx, 0x4e1a4c
mov edi, dword [esp + 0x7c]
cmp al, 1
ja 0x43611a
mov edi, 0x4e1a4c
mov edx, dword [esp + 0x78]
test al, al
jne 0x436127
mov edx, 0x4e1a4c
push 0
push 0
push 1
push 0
push ebx
push esi
call fcn.004ab600
add esp, 0x18
test eax, eax
je case.0x4360e0.63
mov eax, dword [0x51161c]
mov eax, dword [eax + 0x54]
cmp eax, 0xffffffff
jle 0x436159
push 1
push eax
call fcn.00401930
add esp, 8
mov dword [esp + 0x81b4], 0xffffffff
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x436173
push 1
call fcn.00414ef0
mov eax, 1
mov ecx, dword [esp + 0x81ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov al, byte [eax + 2]
mov ecx, dword [esp + 0x88]
cmp al, 4
ja 0x4361a5
mov ecx, 0x4e1a4c
mov ebx, dword [esp + 0x84]
cmp al, 3
ja 0x4361b5
mov ebx, 0x4e1a4c
mov edi, dword [esp + 0x7c]
cmp al, 1
ja 0x4361c2
mov edi, 0x4e1a4c
mov edx, dword [esp + 0x78]
test al, al
jne 0x4361cf
mov edx, 0x4e1a4c
push 0
push 0
push 0
push 0
push ebx
push esi
call fcn.004ab600
add esp, 0x18
test eax, eax
jne case.0x4360e0.63
mov ecx, dword [0x51161c]
mov eax, dword [ecx + 0x54]
jmp 0x436149
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 2]
mov edi, dword [esp + 0x88]
cmp al, 4
ja 0x43620d
mov edi, 0x4e1a4c
mov edx, dword [esp + 0x84]
cmp al, 3
ja 0x43621d
mov edx, 0x4e1a4c
mov ecx, dword [esp + 0x7c]
cmp al, 1
ja 0x43622a
mov ecx, 0x4e1a4c
test al, al
mov eax, dword [esp + 0x78]
jne 0x436237
mov eax, 0x4e1a4c
push 1
push edi
push edx
push ecx
push eax
push esi
call fcn.004ab420
add esp, 0x18
test eax, eax
je case.0x4360e0.63
mov edx, dword [0x51161c]
mov eax, dword [edx + 0x54]
jmp 0x436149
mov edx, dword [ebp + 8]
mov al, byte [edx + 2]
mov edi, dword [esp + 0x88]
cmp al, 4
ja 0x436272
mov edi, 0x4e1a4c
mov edx, dword [esp + 0x84]
cmp al, 3
ja 0x436282
mov edx, 0x4e1a4c
mov ecx, dword [esp + 0x7c]
cmp al, 1
ja 0x43628f
mov ecx, 0x4e1a4c
test al, al
mov eax, dword [esp + 0x78]
jne 0x43629c
mov eax, 0x4e1a4c
push 1
push edi
push edx
push ecx
push eax
push esi
call fcn.004ab420
add esp, 0x18
test eax, eax
je 0x436141
jmp case.0x4360e0.63
cmp byte [esp + 0x1a], 0
je 0x4362d2
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x436159
jmp case.0x4360e0.63
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
jne 0x436159
push 0xf
call edi
test eax, eax
jne 0x436159
jmp case.0x4360e0.63
cmp byte [esp + 0x1b], 0
je 0x43631c
mov eax, dword [esp + 0x6c]
mov bl, byte [esp + 0x1b]
push eax
call fcn.004507d0
add esp, 4
cmp al, byte [esp + 0x13]
je 0x436159
jmp case.0x4360e0.63
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x48]
push 0
push ecx
lea eax, [esp + 0xd0]
call fcn.00450880
fldz
fucompp
add esp, 8
fnstsw ax
test ah, 0x44
jnp 0x436345
mov al, 1
jmp 0x436347
xor al, al
cmp al, byte [esp + 0x13]
je 0x436159
jmp case.0x4360e0.63
cmp dword [esp + 0x5c], 0
mov esi, dword [esp + 0x40]
jne 0x43636f
test esi, esi
je 0x43636f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x5c], eax
xor bl, bl
test esi, esi
je 0x436385
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x5c]
cmp esi, eax
jae 0x436385
mov bl, 1
cmp byte [esp + 0x12], 0
jne 0x436394
test bl, bl
je 0x436415
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4363bf
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x1c]
jmp 0x4363c5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 0
je 0x4363db
mov eax, dword [esp + 0x38]
push eax
call edi
mov dword [esp + 0x38], 0
cmp dword [esp + 0x24], 0
je 0x4363f1
mov ecx, dword [esp + 0x24]
push ecx
call edi
mov dword [esp + 0x24], 0
cmp byte [esp + 0x12], 0
jne 0x436766
test bl, bl
je 0x43641f
mov eax, dword [0x5166e0]
push 0x18
push 0
push 2
call fcn.00401590
jmp 0x436159
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x68], 0
je 0x43667f
cmp dword [esp + 0x24], 0
je 0x43667f
mov dword [esp + 0x64], 0x3e8
test bl, bl
je 0x436450
mov eax, dword [esp + 0x40]
cmp eax, 0x3e8
jae 0x436450
mov dword [esp + 0x64], eax
cmp dword [esp + 0x14], 0
je 0x4365c8
jmp 0x436460
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x14], 0x103
je 0x43648e
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
sete al
mov byte [esp + 0x12], al
test al, al
jne 0x4365b3
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4365b3
jmp 0x4364d0
cmp dword [esp + 0x3c], 0
jne 0x436540
mov edi, ecx
cmp ecx, 0x100000
ja 0x4364e6
mov edi, 0x100000
push 0x14
call fcn.004c62f8
xor edx, edx
add esp, 4
cmp eax, edx
je 0x436527
mov ecx, dword [esp + 0x2c]
inc dword [esp + 0x30]
mov dword [eax + 8], edx
mov dword [eax + 4], edx
mov dword [eax], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
cmp ecx, edx
je 0x436513
mov dword [ecx + 0x10], eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x28], edx
jne 0x436521
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], eax
jmp 0x43652b
mov dword [esp + 0x3c], edx
mov esi, dword [esp + 0x3c]
call fcn.00415010
test eax, eax
je 0x43677b
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov eax, dword [edi + 0xc]
add eax, ecx
cmp eax, dword [edi]
jbe 0x43655a
mov dword [esp + 0x3c], 0
jmp 0x4364d0
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 4]
add dword [esp + 0x34], ecx
add eax, edx
add edx, ecx
push 0
lea ecx, [esp + 0x48]
push ecx
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
sete al
mov byte [esp + 0x12], al
test al, al
jne 0x4365b3
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4365a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x5c]
cmp edi, eax
jb 0x4365b3
cmp dword [esp + 0x14], 0
jne 0x436460
jmp 0x4365be
cmp dword [esp + 0x14], 0
jne 0x436695
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp esi, ebx
je 0x4365d7
push esi
call edi
mov dword [esp + 0x1c], ebx
mov esi, ebx
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4365e6
push eax
call edi
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
push ecx
call edi
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x34], ebx
je 0x43669f
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x81b4], 1
mov edi, dword [esp + 0x34]
add edi, 2
lea esi, [esp + 0x48]
call fcn.00415010
mov edi, eax
cmp edi, ebx
jne 0x4367cd
push 0x4e1a4c
push ebx
push 0x4eed70
call fcn.0049fc00
mov ecx, dword [ebp + 8]
add esp, 4
push eax
call fcn.0042f1b0
mov esi, dword [esp + 0x4c]
mov edi, eax
cmp esi, ebx
je 0x436669
mov ecx, dword [esp + 0x48]
push ecx
push ebx
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x81b4], 0xffffffff
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jmp 0x436925
test esi, esi
je 0x436759
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x43669f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0x103
jne 0x4368dd
cmp byte [esp + 0x11], 0
jne 0x4366cd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x60]
add edx, dword [esp + 0x20]
sub edx, eax
cmp edx, 5
jle 0x4368fc
push 1
push 0x8000012f
call fcn.00401930
add esp, 8
test al, al
je 0x4360c1
mov esi, dword [0x51161c]
cmp byte [esi + 0xf9], 0
je 0x4360c7
mov eax, dword [0x5167b4]
mov ecx, eax
test eax, eax
jne 0x436707
mov ecx, 0x190
mov edx, dword [ecx*4 + 0x5167b4]
cmp edx, dword [ebp + 8]
jne 0x436724
mov edx, dword [esp + 0x60]
cmp dword [ecx*4 + 0x5157cc], edx
je 0x4360c7
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x60]
mov dword [eax*4 + 0x5167b8], ecx
mov dword [eax*4 + 0x5157d0], edx
inc eax
mov dword [0x5167b4], eax
cmp eax, 0x190
jl 0x4360c7
mov dword [0x5167b4], 0
jmp 0x4360c7
mov dword [esp + 0x14], 0
jmp 0x4368e4
mov eax, dword [0x5166e0]
push 0x18
push 0
push 3
call fcn.00401590
jmp 0x436159
push 0x4e1a4c
push 0
push 0x4eed3c
call fcn.0049fc00
mov ecx, dword [ebp + 8]
add esp, 4
push eax
call fcn.0042f1b0
mov dword [esp + 0x81b4], 0xffffffff
mov ecx, dword [esp + 0x28]
mov esi, eax
test ecx, ecx
je 0x4367b4
push 1
call fcn.00414ef0
mov eax, esi
mov ecx, dword [esp + 0x81ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x28]
mov esi, ecx
cmp ecx, ebx
je 0x4367f5
mov ebx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
push eax
push edi
call fcn.004cd6c0
mov esi, dword [esi + 0x10]
add esp, 0xc
add edi, ebx
test esi, esi
jne 0x4367d7
mov ecx, dword [esp + 0x28]
xor ebx, ebx
mov word [edi], bx
cmp ecx, ebx
je 0x436805
push 1
call fcn.00414ef0
push 0x4eeda8
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0049fc00
mov esi, dword [0x515e60]
add esp, 4
mov edx, eax
call fcn.004498e0
test eax, eax
je 0x43683c
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x4c]
call fcn.00490ed0
add esp, 4
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x436851
mov ecx, dword [esp + 0x34]
push 0x18
push ebx
push ecx
call fcn.00401590
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x4c]
push edx
mov eax, esi
call fcn.0046df40
cmp byte [esi + 0x17], 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], ebx
jne 0x43687a
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x4368b8
cmp dword [0x5179f4], ebx
je 0x4368b8
mov ecx, 0x5179e8
call fcn.00404c10
cmp eax, ebx
jne 0x4368bc
lea ecx, [esp + 0x48]
call fcn.00414f70
xor eax, eax
mov ecx, dword [esp + 0x81ac]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
and byte [esi + 0x15], 0x86
mov eax, dword [esp + 0x14]
cdq
push 0x18
push edx
push eax
mov eax, dword [0x5166e0]
call fcn.00401590
lea ecx, [esp + 0x48]
call fcn.00414f70
jmp 0x436173
test esi, esi
je 0x4368e4
push esi
call edi
mov eax, dword [esp + 0x14]
cdq
push 0x18
push edx
push eax
mov eax, dword [0x5166e0]
call fcn.00401590
jmp 0x436159
mov eax, dword [0x5166e0]
push 1
push 0
push 0xffffffffffffffff
push 0x4e6784
push eax
call fcn.004aa2a0
mov dword [esp + 0x81b4], 0xffffffff
mov ecx, dword [esp + 0x28]
mov edi, eax
test ecx, ecx
je 0x43692e
push 1
call fcn.00414ef0
mov ecx, dword [esp + 0x81ac]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4