Function at 0x4cf910
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa8
lea eax, [edx + 0xc]
mov edi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x9c], eax
lea eax, [edx + 0x78]
mov dword [ebp - 0x70], eax
lea eax, [edx + 0x14]
mov dword [ebp - 0xb4], eax
lea eax, [edx + 4]
mov dword [ebp - 0xa0], eax
lea eax, [edx + 0x68]
mov dword [ebp - 0xa4], eax
movzx eax, byte [edi + 8]
test eax, eax
jne 0x4d02b6
mov cl, byte [edi + 0xb]
mov al, byte [edi + 0xa]
mov bh, byte [edi + 9]
mov bl, byte [edi + 0xc]
mov edx, edi
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0x10], al
call fcn.004d0515
cmp byte [ebp - 0x6c], 4
jne 0x4cf981
mov eax, dword [ebp - 0x68]
jmp 0x4cf990
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
cmp cl, 4
jne 0x4d02f6
test eax, eax
je 0x4cf9a0
cmp byte [edi + 8], 0
jne 0x4cf9a4
mov byte [edi + 9], 1
jmp 0x4cf9a4
test bh, bh
je 0x4cf9cf
mov eax, dword [edi + 0x2c]
push dword [edi + 0x28]
lea ecx, [ebp - 0x6c]
push ecx
call dword [eax + 0x18]
add esp, 8
cmp byte [ebp - 0x6c], 4
je 0x4cf9c5
mov eax, dword [ebp - 0x6c]
cmp al, 4
jne 0x4d0329
cmp byte [edi + 8], 0
jne 0x4cf9cf
mov byte [edi + 9], 0
or bl, byte [ebp - 0x28]
jne 0x4cfe53
cmp byte [edi + 0xae], 0
jne 0x4cfe53
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push 0x53
push dword [ebp - 0x70]
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x4cfa29
mov edx, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], eax
je 0x4cfa33
cmp byte [ebp - 0x10], 0
je 0x4cfa33
lea eax, [ebp - 0x6c]
push eax
call fcn.004cd164
add esp, 4
xor eax, eax
mov dl, 4
mov bh, al
jmp 0x4cfe37
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x68], edx
mov byte [ebp - 0x6c], 4
mov ebx, dword [ebp - 0x6c]
cmp bl, 4
jne 0x4cfac4
mov ebx, dword [edx + 0x10]
mov dword [ebp - 0x20], edx
test ebx, ebx
je 0x4cfada
push ebx
call sub.crypt32.dll_CertDuplicateStore
cmp dword [edi], 0
mov esi, eax
je 0x4cfafc
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x6c]
call fcn.0048083d
test eax, eax
je 0x4cfae5
mov edi, edx
lea ecx, [ebp - 0x40]
mov edx, esi
push edi
call fcn.004807fd
add esp, 4
cmp byte [ebp - 0x40], 4
jne 0x4cfaa4
mov esi, dword [ebp - 0x3c]
and ebx, 0xffffff00
or ebx, 4
jmp 0x4cfaaa
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
cmp bl, 4
jne 0x4cfc62
push esi
call sub.crypt32.dll_CertFreeCertificateContext
push edi
call sub.crypt32.dll_CertFreeCertificateContext
mov esi, dword [ebp - 0x18]
jmp 0x4cfa74
mov eax, ebx
shrd eax, edx, 0x10
shr edx, 0x10
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
mov edx, ebx
jmp 0x4cfe37
mov esi, dword [edi]
test esi, esi
je 0x4cfb07
mov esi, dword [edi + 4]
jmp 0x4cfb07
cmp dword [ebp - 0x6c], 0
mov edi, dword [ebp - 0x14]
je 0x4cfaf6
push dword [ebp - 0x68]
call sub.crypt32.dll_CertFreeCertificateContext
cmp dword [ebp - 0x24], 0
je 0x4cfb04
push 0
push esi
call sub.crypt32.dll_CertCloseStore
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 3
xor ecx, ecx
mov dword [ebp - 0x40], str.1.3.6.1.5.5.7.3.1
mov dword [ebp - 0x3c], str.1.3.6.1.4.1.311.10.3.3
mov dword [ebp - 0x38], str.2.16.840.1.113730.4.1
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], ecx
push eax
push ecx
push 0xc0000001
lea eax, [ebp - 0x6c]
push eax
push esi
push ecx
push edx
push ecx
call sub.crypt32.dll_CertGetCertificateChain
test eax, eax
je 0x4cfc3f
mov edx, dword [ebp - 0x98]
cmp dword [edi], 0
mov dword [ebp - 0x24], edx
je 0x4cfc9c
lea ecx, [ebp - 0x40]
call fcn.00480753
cmp dword [ebp - 0x40], 0
je 0x4cfcbe
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0x98]
call fcn.004807c7
mov esi, edx
cmp eax, 1
jne 0x4cfca3
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], 0
lea ecx, [ebp - 0x6c]
call fcn.0048083d
mov edi, eax
mov ebx, edx
cmp eax, 1
jne 0x4cfc0e
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
jne 0x4cfc06
push eax
push dword [esi + 4]
push dword [ebx + 4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov esi, eax
push ebx
call sub.crypt32.dll_CertFreeCertificateContext
test esi, esi
mov esi, dword [ebp - 0x18]
jne 0x4cfbcd
jmp 0x4cfc18
push ebx
call sub.crypt32.dll_CertFreeCertificateContext
jmp 0x4cfbcd
test edi, edi
je 0x4cfc18
push ebx
call sub.crypt32.dll_CertFreeCertificateContext
cmp dword [ebp - 0x6c], 0
je 0x4cfc26
push dword [ebp - 0x68]
call sub.crypt32.dll_CertFreeCertificateContext
push esi
call sub.crypt32.dll_CertFreeCertificateContext
cmp edi, 1
mov edi, dword [ebp - 0x14]
jne 0x4cfba4
mov esi, 0xf10
jmp 0x4cfcb4
call sub.kernel32.dll_GetLastError
mov ecx, eax
shl eax, 0x10
mov dword [ebp - 0x18], 0
shr ecx, 0x10
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], ecx
mov bh, al
jmp 0x4cfe2b
mov eax, esi
shr esi, 0x10
shld eax, ebx, 0x10
mov dword [ebp - 0x48], eax
push edi
call sub.crypt32.dll_CertFreeCertificateContext
cmp dword [ebp - 0x6c], 0
je 0x4cfc82
push dword [ebp - 0x68]
call sub.crypt32.dll_CertFreeCertificateContext
push 0
push dword [ebp - 0x18]
call sub.crypt32.dll_CertCloseStore
mov edi, dword [ebp - 0x14]
mov eax, ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x18], eax
jmp 0x4cfe2b
mov esi, 0xf00
jmp 0x4cfcc6
mov ecx, esi
mov esi, 0xf00
test eax, eax
je 0x4cfcb4
push ecx
call sub.crypt32.dll_CertFreeCertificateContext
push dword [ebp - 0x78]
call sub.crypt32.dll_CertFreeCertificateChain
jmp 0x4cfcc3
mov esi, 0xf00
mov edx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], eax
mov eax, dword [edi + 0x8c]
mov dword [ebp - 0x98], 0x10
mov dword [ebp - 0x94], 2
test eax, eax
je 0x4cfd01
cmp byte [edi + 0xad], 0
jne 0x4cfd01
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x7c], 0xc
mov dword [ebp - 0x78], esi
xor ecx, ecx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x68]
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 8], ecx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0x14
push eax
lea eax, [ebp - 0x7c]
push eax
push edx
push 4
call sub.crypt32.dll_CertVerifyCertificateChainPolicy
test eax, eax
je 0x4cfd52
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x4cfd75
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], 0
jmp 0x4cfd79
call sub.kernel32.dll_GetLastError
mov ecx, eax
shl eax, 0x10
mov dword [ebp - 0x18], 0
shr ecx, 0x10
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], ecx
mov bh, al
jmp 0x4cfe22
mov byte [ebp - 0x30], 4
mov ecx, dword [edi + 0x80]
test ecx, ecx
je 0x4cfdf0
mov eax, dword [edi + 0x84]
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [edx + ecx + 8]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x40]
push edx
push ecx
lea ecx, [ebp - 0x88]
push ecx
call dword [eax + 0x14]
add esp, 0xc
test esi, esi
je 0x4cfdcb
lea eax, [ebp - 0x30]
push eax
call fcn.004cd164
add esp, 4
mov ebx, dword [ebp - 0x88]
cmp bl, 4
je 0x4cfe00
mov ecx, dword [ebp - 0x84]
mov eax, ebx
mov dword [ebp - 0x18], ebx
shrd eax, ecx, 0x10
shr ecx, 0x10
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
jmp 0x4cfe2b
mov ebx, dword [ebp - 0x30]
cmp bl, 4
jne 0x4cfe0d
push dword [ebp - 0x24]
call sub.crypt32.dll_CertFreeCertificateChain
mov eax, dword [ebp - 0x20]
push eax
call sub.crypt32.dll_CertFreeCertificateContext
mov bh, 1
jmp 0x4cfe40
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
mov dword [ebp - 0x18], ebx
shrd eax, ecx, 0x10
shr ecx, 0x10
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x24]
push eax
call sub.crypt32.dll_CertFreeCertificateChain
mov eax, dword [ebp - 0x20]
push eax
call sub.crypt32.dll_CertFreeCertificateContext
mov edx, dword [ebp - 0x18]
cmp dl, 4
jne 0x4d0343
test bh, bh
je 0x4cfe53
cmp byte [edi + 8], 0
jne 0x4cfe53
mov eax, dword [ebp - 0x9c]
mov byte [eax], 1
cmp byte [ebp - 0x10], 0
je 0x4d0234
cmp dword [edi + 0x98], 0
je 0x4cfe92
lea ecx, [ebp - 0x6c]
mov edx, edi
call fcn.004d05b5
cmp byte [ebp - 0x6c], 4
jne 0x4cfe7b
mov eax, dword [ebp - 0x68]
jmp 0x4cfe8a
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
cmp cl, 4
jne 0x4d02f6
test eax, eax
je 0x4d0304
mov esi, dword [edi + 0x48]
mov al, byte [0x5c91e8]
mov ecx, 0x18
mov edx, 4
call fcn.0041aa20
test eax, eax
je 0x4d0428
mov edx, dword [edi + 0x58]
cmp edx, esi
jb 0x4d0439
mov ebx, eax
mov eax, dword [edi + 0x50]
mov ecx, 2
mov dword [ebx], esi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ecx
mov edx, dword [edi + 0xa0]
test edx, edx
je 0x4cff4c
lea ecx, [ebp - 0x7c]
push dword [edi + 0xa8]
call fcn.00480b5c
add esp, 4
mov eax, dword [ebp - 0x7c]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x4cff63
mov edi, dword [ebp - 0x78]
mov esi, dword [ebp - 0x74]
lea ecx, [ebp - 0x88]
mov edx, 2
call fcn.00464ae7
mov ecx, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x14]
lea eax, [ecx + ecx*2]
inc ecx
mov dword [ebx + eax*4], edi
mov dword [ebx + eax*4 + 4], 0x12
mov dword [ebx + eax*4 + 8], esi
xor eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x80], ecx
jmp 0x4cff75
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x28], 0
jmp 0x4cff73
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x28], 0
xor eax, eax
mov edx, edi
xor edi, edi
cmp byte [edx + 0xae], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 2
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x5c], 0x11
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x18], edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ebx
je 0x4d001b
mov ecx, dword [edx + 0x88]
cmp byte [edx + 0xaf], 0
mov esi, dword [ebp - 0x70]
mov eax, 0
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmove eax, esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
push edi
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push esi
push edi
push 0x1011c
lea ecx, [ebp - 0x98]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call sub.secur32.dll_AcceptSecurityContext
jmp 0x4d006d
mov ecx, dword [edx + 0x8c]
cmp byte [edx + 0xac], 0
mov eax, ecx
cmove eax, edi
test ecx, ecx
cmove eax, ecx
mov ecx, dword [edx + 0x88]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
push edi
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push edi
push edi
lea ecx, [ebp - 0x98]
push ecx
push edi
push edi
push 0x9819c
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x30]
push eax
call sub.secur32.dll_InitializeSecurityContextW
mov esi, eax
mov edi, 0xffffffe8
mov eax, dword [ebp + edi - 0x40]
test eax, eax
je 0x4d0082
push eax
call sub.secur32.dll_FreeContextBuffer
add edi, 0xc
jne 0x4d0074
cmp esi, 0x80090318
je 0x4d0113
mov edi, dword [ebp - 0x14]
mov eax, esi
test esi, esi
je 0x4d0139
cmp eax, 0x90312
jne 0x4d033a
cmp dword [ebp - 0x10], 1
mov byte [edi + 0xaf], 0
jbe 0x4d03f9
cmp dword [ebx + 0x10], 5
mov edx, dword [edi + 0x48]
jne 0x4d00c8
sub edx, dword [ebx + 0xc]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x64]
mov ecx, ebx
call fcn.004d06af
mov eax, dword [ebx + 0x48]
xor ecx, ecx
mov edx, esi
or eax, dword [ebx + 0x4c]
mov eax, str.failed_to_write_whole_buffer
sete cl
test edi, edi
mov dword [ebx + 0x98], ecx
mov ecx, dword [ebp - 0xa4]
cmove edx, eax
add edi, edx
push edi
mov edi, ebx
call fcn.004ba2b7
add esp, 4
push esi
call sub.secur32.dll_FreeContextBuffer
jmp 0x4d01ef
cmp dword [ebp - 0x10], 1
mov edi, dword [ebp - 0x14]
jbe 0x4d0406
cmp dword [ebx + 0x10], 4
mov eax, 1
jne 0x4d012e
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x98], eax
jmp 0x4d01ef
cmp dword [ebp - 0x10], 1
jbe 0x4d0413
cmp dword [ebx + 0x10], 5
mov edx, dword [edi + 0x48]
jne 0x4d014f
sub edx, dword [ebx + 0xc]
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x4d01a9
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x6c]
call fcn.004d06af
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [eax + 0x48]
or eax, dword [edx + 0x4c]
mov eax, dword [ebp - 0x14]
mov edx, esi
sete cl
test edi, edi
mov dword [eax + 0x98], ecx
mov ecx, dword [ebp - 0xa4]
mov eax, str.failed_to_write_whole_buffer
cmove edx, eax
add edi, edx
push edi
mov edi, dword [ebp - 0x14]
call fcn.004ba2b7
add esp, 4
push esi
call sub.secur32.dll_FreeContextBuffer
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x4c]
jmp 0x4d01c5
mov ecx, edi
call fcn.004d06af
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x4c]
xor edx, edx
mov esi, eax
or esi, ecx
sete dl
mov dword [edi + 0x98], edx
or eax, ecx
je 0x4d01e5
lea ecx, [ebp - 0x30]
mov edx, edi
call fcn.004d072c
cmp byte [ebp - 0x30], 4
je 0x4d01e5
mov ebx, dword [ebp - 0x30]
cmp bl, 4
jne 0x4d036c
cmp byte [edi + 8], 0
jne 0x4d01ef
mov byte [edi + 0xa], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4d020f
mov eax, dword [ebp - 0x74]
cmp ecx, 9
jb 0x4d0201
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x84], 0
je 0x4cf94e
push dword [ebp - 0x88]
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
jmp 0x4cf94e
cmp byte [ebp - 0x28], 0
mov al, 2
jne 0x4d0287
xorps xmm0, xmm0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
push eax
push 4
push dword [ebp - 0x70]
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
jne 0x4d03e4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x68]
movsd xmm0, qword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x38], eax
movsd qword [ebp - 0x40], xmm0
mov al, 1
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xac]
mov byte [edi + 8], al
movsd xmm0, qword [ebp - 0x40]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 8], edx
movsd qword [ecx], xmm0
jmp 0x4cf94e
cmp eax, 1
jne 0x4d02e8
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov dword [ecx + 0x14], eax
movsd qword [ecx + 0xc], xmm1
movsd qword [ecx + 4], xmm0
mov dword [ecx], 1
jmp 0x4d03d9
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x4d03d9
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x4d03d3
mov esi, dword [ebp - 0x1c]
mov edx, 0x25
lea ecx, [esi + 4]
push 0x1f
push 0x5a3e24
call fcn.004c625d
add esp, 8
mov dword [esi], 2
jmp 0x4d03d9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x68]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
jmp 0x4d03d3
mov esi, eax
shl eax, 0x18
xor ebx, ebx
jmp 0x4d0375
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
movzx eax, bh
mov esi, edx
shl eax, 8
shld edi, ecx, 0x10
shl ecx, 0x10
or eax, ecx
mov ecx, esi
mov esi, dword [ebp - 0x1c]
movzx ecx, cl
or ecx, eax
mov dword [esi + 8], edi
mov dword [esi + 4], ecx
jmp 0x4d031e
mov esi, dword [ebp - 0x2c]
mov eax, ebx
shrd eax, esi, 8
shr esi, 8
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4d039c
mov edi, eax
mov eax, dword [ebp - 0x74]
cmp ecx, 9
jb 0x4d038c
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5c9128]
call sub.kernel32.dll_HeapFree
mov eax, edi
cmp dword [ebp - 0x84], 0
je 0x4d03bc
push dword [ebp - 0x88]
push 0
push dword [0x5c9128]
mov edi, eax
call sub.kernel32.dll_HeapFree
mov eax, edi
mov edx, dword [ebp - 0x1c]
shld esi, eax, 8
shl eax, 8
movzx edi, bl
mov ecx, eax
or edi, ecx
mov dword [edx + 8], esi
mov dword [edx + 4], edi
mov dword [edx], 2
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx], 2
jmp 0x4d03d9
mov edx, dword [ebp - 0x10]
xor ecx, ecx
inc ecx
push 0x5a3e94
jmp 0x4d041e
mov edx, dword [ebp - 0x10]
xor ecx, ecx
inc ecx
push 0x5a3ea4
jmp 0x4d041e
mov edx, dword [ebp - 0x10]
xor ecx, ecx
inc ecx
push 0x5a3e84
call fcn.00444440
add esp, 4
ud2
mov ecx, 4
mov edx, 0x18
call fcn.0041b1c0
ud2
mov ecx, esi
push 0x5a3e74
call fcn.00445020
jmp 0x4d0423