Function at 0x438040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493295
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x78834c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.MSVCR100.dll_strncpy]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], eax
push 0x50
jne 0x4380ac
lea ecx, [ebp - 0xbc]
push str._____BEGIN_CERTIFICATE_____
push ecx
call esi
push 0x50
push str._____END_CERTIFICATE_____
lea edx, [ebp - 0x10c]
push edx
jmp 0x4380c8
lea eax, [ebp - 0xbc]
push str._____BEGIN_RSA_PRIVATE_KEY_____
push eax
call esi
push 0x50
push str._____END_RSA_PRIVATE_KEY_____
lea ecx, [ebp - 0x10c]
push ecx
call esi
mov esi, dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0x18
push edi
lea edx, [ebp - 0x6c]
push 0x50
push edx
or ebx, 0xffffffff
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x10d], 0
call esi
add esp, 0xc
test eax, eax
je 0x43814f
jmp 0x438100
lea eax, [ebp - 0xbc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438110
sub eax, edx
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
push edi
test eax, eax
je 0x438144
lea edx, [ebp - 0x6c]
push 0x50
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x438100
jmp 0x43814f
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 4
mov ebx, eax
push edi
lea eax, [ebp - 0x6c]
push 0x50
push eax
call esi
add esp, 0xc
test eax, eax
je 0x4382a9
mov ax, word [0x4be1bc]
mov edx, dword [0x4be1b8]
mov ecx, dword [str.Proc_Type]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x438185
sub eax, edx
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4382a9
push edi
lea eax, [ebp - 0x6c]
push 0x50
push eax
call esi
add esp, 0xc
test eax, eax
je 0x4382a9
mov ebx, dword [sym.imp.MSVCR100.dll_strstr]
lea ecx, [ebp - 0x6c]
push 0x4be1b0
push ecx
call ebx
lea edx, [ebp - 0x6c]
push 0x4bad88
push edx
mov esi, eax
call ebx
add esp, 0x10
mov ebx, eax
test esi, esi
jne 0x4381f7
lea eax, [ebp - 0x6c]
push 0x4be1ac
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x438370
test esi, esi
je 0x43827c
test ebx, ebx
je 0x43827c
cmp esi, ebx
jae 0x43827c
mov ecx, ebx
sub ecx, esi
push ecx
push esi
push eax
call fcn.0047322e
mov eax, dword [ebp - 0x118]
mov edx, eax
sub edx, esi
lea edi, [eax + 0x50]
mov byte [edx + ebx], 0
lea esi, [ebx + 1]
mov ecx, 8
lea eax, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.MSVCR100.dll_strstr]
push 0x4be1a8
push eax
call esi
add esp, 0x14
test eax, eax
jne 0x438262
lea ecx, [ebp - 0x6c]
push 0x4b89e8
push ecx
call esi
add esp, 8
test eax, eax
je 0x438276
cmp eax, ebx
jbe 0x438276
mov ecx, dword [ebp - 0x118]
sub eax, ebx
dec eax
mov dword [ecx + 0x70], eax
mov byte [ecx + 0x74], 1
mov edi, dword [ebp - 0x11c]
mov esi, dword [sym.imp.MSVCR100.dll_ftell]
push edi
call esi
push edi
lea edx, [ebp - 0x6c]
push 0x50
push edx
mov ebx, eax
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0x10
test eax, eax
je 0x4382a3
push edi
call esi
add esp, 4
mov ebx, eax
mov esi, dword [sym.imp.MSVCR100.dll_fgets]
push edi
lea eax, [ebp - 0x6c]
push 0x50
push eax
call esi
add esp, 0xc
test eax, eax
je 0x43830a
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4382c2
sub eax, edx
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x438303
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
push edi
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x6c]
push 0x50
push eax
call esi
add esp, 0x10
test eax, eax
jne 0x4382b9
jmp 0x43830a
mov byte [ebp - 0x10d], 1
cmp ebx, 0xffffffff
je 0x438370
cmp byte [ebp - 0x10d], 0
je 0x438370
mov esi, dword [ebp - 0x114]
sub esi, ebx
push esi
lea ecx, [ebp - 0x158]
call fcn.0045ba00
push 0
push ebx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
push edi
push 1
push esi
lea ecx, [ebp - 0x158]
call fcn.0045ba70
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
lea ecx, [ebp - 0x158]
cmp eax, 1
je 0x43838e
mov dword [ebp - 4], 0xffffffff
call fcn.0045bd00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472ef6
mov esp, ebp
pop ebp
ret
push esi
call fcn.0045ba70
push eax
lea ecx, [ebp - 0x140]
call fcn.00418830
xor esi, esi
push esi
push esi
push esi
lea ecx, [ebp - 0x12c]
push esi
push ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
call fcn.00418510
add esp, 0x14
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x128], esi
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x120], edx
call fcn.004509e0
mov edi, dword [ebp - 0x13c]
mov bl, 3
push 8
mov byte [ebp - 4], bl
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x43841b
push edi
mov ecx, eax
call fcn.004435d0
mov esi, eax
jmp 0x43841d
xor esi, esi
mov dword [ebp - 0x114], esi
mov eax, dword [ebp - 0x138]
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00443640
push eax
call fcn.0047322e
push 0
mov byte [ebp - 4], bl
call fcn.004184d0
mov ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x124]
push ecx
push 0
push eax
mov edi, eax
call sub.MSVCR100.dll_memset
push edi
call fcn.00417e40
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x138]
push edx
push 0
push eax
mov edi, eax
call sub.MSVCR100.dll_memset
push edi
call fcn.00417e40
add esp, 0x30
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.0045bd00
mov eax, esi
jmp 0x438372