Function at 0x4783e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005091e0
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4786e1
test ecx, ecx
je 0x4786e1
mov dword [edi + 0x53c], ebx
push esi
cmp ebx, 0xc7
jle 0x47843b
cmp ebx, 0xcc
je 0x47843b
cmp ebx, 0x130
je 0x47843b
mov esi, 1
jmp 0x478453
xor esi, esi
cmp dword [edi + 0x524], esi
jne 0x4784c0
mov eax, dword [edi + 0x4a8]
cmp dword [eax + 0x7ca8], esi
je 0x4784c0
push edx
push 0
push ecx
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.004013b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x47848d
cmp eax, 0x1000
jb 0x4784b8
lea eax, [ebp - 0x1004]
push eax
push 0xc8
push str.truncating_vsnprintf_buffer:___.s_
push 0xcb4
push str.mg_vsnprintf
push 0
push edi
call fcn.0040d4d0
add esp, 0x1c
mov eax, 0xfff
mov byte [ebp + eax - 0x1004], 0
cmp dword [edi + 0x524], 0
jne 0x478508
mov eax, dword [edi + 0x4a8]
cmp dword [eax + 0x7ca8], 0
je 0x478508
lea ecx, [ebp - 0x1004]
mov dword [edi + 0x524], 1
mov eax, dword [eax + 0x7ca8]
push ecx
push ebx
push edi
call eax
add esp, 0xc
mov dword [edi + 0x524], 0
test eax, eax
je 0x4786ce
lea eax, [ebx - 0x64]
mov dword [edi + 0x51c], 1
cmp eax, 0x383
ja 0x478543
cmp dword [edi], 1
jne 0x478543
cmp dword [edi + 4], 1
je 0x478543
cmp dword [edi + 8], 0
jne 0x478543
push edi
mov dword [edi + 0x53c], ebx
mov dword [edi + 8], 1
call fcn.004741b0
add esp, 4
push edi
call fcn.0047bf30
push edi
call fcn.0047bd30
push edi
call fcn.0047bea0
add esp, 0xc
test esi, esi
je 0x478687
cmp dword [edi], 1
jne 0x478687
cmp dword [edi + 4], 1
je 0x478687
cmp dword [edi + 8], 1
jne 0x478687
mov eax, dword [edi + 0x2a0]
mov dword [ebp - 0x1008], eax
cmp eax, 0x40
jge 0x478687
push 0xd
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x4785d0
mov esi, str.Content_Type
mov edx, 0xd
mov ecx, eax
sub esi, eax
cmp edx, 1
jbe 0x4785c7
mov al, byte [esi + ecx]
dec edx
mov byte [ecx], al
inc ecx
cmp byte [esi + ecx], 0
jne 0x4785b5
mov eax, dword [ebp - 0x100c]
mov byte [ecx], 0
mov ecx, dword [ebp - 0x1008]
push 0x1a
mov dword [edi + ecx*8 + 0x2a4], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x47861b
mov esi, str.text_plain__charsetutf_8
mov edx, 0x1a
mov ecx, eax
sub esi, eax
cmp edx, 1
jbe 0x478612
mov al, byte [esi + ecx]
dec edx
mov byte [ecx], al
inc ecx
cmp byte [esi + ecx], 0
jne 0x478600
mov eax, dword [ebp - 0x100c]
mov byte [ecx], 0
mov ecx, dword [ebp - 0x1008]
mov dword [edi + ecx*8 + 0x2a8], eax
mov ecx, dword [edi + ecx*8 + 0x2a4]
test ecx, ecx
je 0x478648
test eax, eax
je 0x478648
inc dword [edi + 0x2a0]
push edi
call fcn.004781e0
add esp, 4
jmp 0x478694
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ecx
call esi
mov eax, dword [ebp - 0x1008]
push dword [edi + eax*8 + 0x2a8]
mov dword [edi + eax*8 + 0x2a4], 0
call esi
mov ecx, dword [ebp - 0x1008]
push edi
mov dword [edi + ecx*8 + 0x2a8], 0
call fcn.004781e0
add esp, 0xc
jmp 0x478694
push edi
call fcn.004781e0
add esp, 4
test esi, esi
je 0x4786ce
push ebx
push edi
call fcn.00476e50
push eax
push ebx
push str.Error__d:__s_n
push edi
call fcn.00477c80
lea ecx, [ebp - 0x1004]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4786b4
sub ecx, edx
lea eax, [ebp - 0x1004]
push ecx
push eax
push edi
call fcn.00479c10
add esp, 0xc
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xfffffffe
pop edi
xor ecx, ebp
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret