Function at 0x4a75d0
Capabilities:
Create thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, eax
xor ebp, ebp
mov dword [esp], 0x6ceec0
call fcn.004b7280
xor eax, eax
lea esi, [esi]
lea edx, [eax + eax*2]
shl edx, 2
mov ecx, dword [edx + 0x7b5d60]
test ecx, ecx
je 0x4a7610
cmp dword [edx + 0x7b5d64], esi
jne 0x4a7610
mov ebp, dword [edx + 0x7b5d68]
nop
inc eax
cmp eax, 0x40
jne 0x4a75f0
xor ebx, ebx
test ebp, ebp
jne 0x4a7636
lea esi, [esi]
lea eax, [ebx + ebx*2]
shl eax, 2
mov eax, dword [eax + 0x7b5d60]
test eax, eax
je 0x4a7650
inc ebx
cmp ebx, 0x40
jne 0x4a7620
mov dword [esp], 0x6ceec0
call fcn.004b72a0
add esp, 0x5c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004a2d30
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x7166b1
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 4], 0x71674e
mov dword [esp], 7
call fcn.004a2da0
mov dword [esp + 4], 0x105c
mov dword [esp], 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0xc
call sub.msvcrt.dll_calloc
mov edx, eax
test eax, eax
je 0x4a79a0
cmp esi, 0x1ff
ja 0x4a79f0
lea eax, [esi + esi*4]
shl eax, 2
lea edi, [eax + 0x7b8060]
mov eax, dword [eax + 0x7b8060]
test eax, eax
je 0x4a79f0
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x7166b1
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 4], str._s:_check:__s_p__fd_d____handle_p_socket_d_dupfrom_d_n
mov dword [esp], 7
call fcn.004a2da0
mov edx, dword [esp + 0x38]
mov eax, dword [edi + 4]
mov dword [edx + 0xc], 1
mov dword [edx], eax
mov eax, dword [edi + 8]
mov dword [edx + 4], eax
lea eax, [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
call edi
sub esp, 0x10
test eax, eax
mov edx, dword [esp + 0x38]
mov dword [edx + 0x48], eax
je 0x4a78d1
lea eax, [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0x38], edx
call edi
sub esp, 0x10
test eax, eax
mov edx, dword [esp + 0x38]
mov dword [edx + 0x4c], eax
je 0x4a78dc
lea eax, [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x38], edx
call edi
sub esp, 0x10
mov ecx, eax
mov edx, dword [esp + 0x38]
mov dword [edx + 0x50], eax
mov eax, dword [edx + 0x48]
test eax, eax
je 0x4a78dc
mov edi, dword [edx + 0x4c]
test edi, edi
je 0x4a78dc
test ecx, ecx
je 0x4a78dc
mov dword [esp + 0x38], edx
call fcn.004a6fc0
mov edx, dword [esp + 0x38]
mov ecx, 9
mov dword [edx + 0x48], eax
lea edi, [edx + 0x10]
xor eax, eax
mov dword [esp + 0x3c], edi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
mov byte [edx + 0x10], 1
mov byte [edx + 0x18], 0xff
mov byte [edx + 0x19], 0xff
mov byte [edx + 0x1a], 0xff
mov byte [edx + 0x1b], 0xff
mov dword [esp + 0x14], eax
lea eax, [esp + 0x44]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x4a6480
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
test eax, eax
mov edx, dword [esp + 0x38]
mov dword [edx + 8], eax
je 0x4a7a50
mov dword [esp + 0x38], edx
call fcn.004a6a20
mov edx, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
push eax
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 4], 0x716415
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a2d50
mov edx, dword [esp + 0x38]
mov ebp, edx
lea eax, [ebx + ebx*2]
shl eax, 2
mov dword [eax + 0x7b5d64], esi
mov dword [eax + 0x7b5d68], ebp
mov dword [eax + 0x7b5d60], 1
jmp 0x4a7636
mov eax, dword [edx + 0x4c]
test eax, eax
jne 0x4a77a4
mov dword [esp + 0x38], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x7166b1
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 4], str._s:_check:__s_p__CreateEvent_failed:_ec_d_n
mov dword [esp], 7
call fcn.004a2da0
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x48]
test eax, eax
je 0x4a792b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x4a7944
mov dword [esp], eax
mov dword [esp + 0x38], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x50]
test eax, eax
je 0x4a795d
mov dword [esp], eax
mov dword [esp + 0x38], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call sub.msvcrt.dll_free
mov dword [esp], 5
call fcn.006c4b80
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s:_error:__s_n
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a2d50
jmp 0x4a78b0
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
test eax, eax
je 0x4a7a36
call edi
mov eax, dword [eax]
mov dword [esp], eax
call fcn.006c4b80
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s:_error:__s_n
mov dword [esp], 7
xor ebp, ebp
call fcn.004a2da0
call fcn.004a2d50
call edi
jmp 0x4a78b0
mov dword [esp], 5
mov dword [esp + 0x38], edx
call fcn.006c4b80
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s:_error:__s_n
mov dword [esp], 7
call fcn.004a2da0
call fcn.004a2d50
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call sub.msvcrt.dll_free
jmp 0x4a78b0
call edi
mov eax, dword [eax]
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s:_leave:_result_i_n
jmp 0x4a79d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x7166b1
mov dword [esp + 8], str.gpgme:create_reader
mov dword [esp + 4], str._s:_check:__s_p__CreateThread_failed:_ec_d_n
mov dword [esp], 7
call fcn.004a2da0
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004b72b0
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x48]
test eax, eax
jne 0x4a791d
jmp 0x4a792b