Function at 0x4d2850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov esi, dword [ecx]
test esi, esi
je 0x4d2c85
mov eax, ecx
lea ecx, [esp + 8]
push dword [eax + 0x18]
mov dword [esp + 4], eax
call fcn.00550e3a
mov dword [esp + 0x1c], esi
sub esi, dword [esp + 8]
mov ebx, esi
sar ebx, 0x1f
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebx
lea ecx, [esp + 8]
mov eax, dword [esp]
push dword [eax + 0x18]
call fcn.00550e3a
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], 0
xor edi, edi
sub ecx, esi
mov edx, 0
sbb edx, ebx
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp ecx, eax
mov ecx, dword [esp]
sbb edx, dword [ecx + 0xc]
mov edx, dword [esp]
lea esi, [edx + 8]
jae 0x4d29ae
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x98], str.unable_to_read_data_at_0x
lea eax, [esp + 0x90]
mov dword [esp + 0xa0], eax
mov word [esp + 0xa8], 0xe03
lea eax, [esp + 0x98]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], str._of_size_0x
mov word [esp + 0x30], 0x302
lea eax, [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], esi
mov word [esp + 0x58], 0xe02
lea eax, [esp + 0x48]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0x558815
mov word [esp + 0x44], 0x302
mov eax, dword [edx + 0x2c]
mov edx, dword [edx + 0x30]
lea esi, [esp + 0x34]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov word [esp + 0x6c], 0x502
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], str._:_it_goes_past_the_end_of_the_file_of_size_0x
mov word [esp + 0x80], 0x302
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x10], eax
mov word [esp + 0x18], 0xe02
lea eax, [esp + 8]
push eax
call fcn.0053aad0
mov esi, dword [esp + 0x1c]
jmp 0x4d2c87
lea ebx, [esp + 8]
test al, 0xf
jne 0x4d29cf
mov ecx, dword [edx + 0x10]
xor ecx, 0x10
or ecx, dword [edx + 0x14]
jne 0x4d29cf
sar eax, 4
mov edi, eax
mov esi, dword [esp + 0x1c]
jmp 0x4d2c87
mov dword [esp + 0x84], esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
movzx ecx, byte [edx + 0x20]
mov eax, ecx
and al, 1
mov esi, dword [esp + 0x1c]
je 0x4d2a08
mov ecx, dword [edx + 0x24]
test ecx, ecx
jne 0x4d2a12
jmp 0x4d2b02
shr ecx, 1
test ecx, ecx
je 0x4d2b02
lea ebx, [ecx + 5]
cmp ebx, 0xfffffff0
jae 0x4d2c93
cmp ebx, 0xa
ja 0x4d2a49
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
add bl, bl
mov dword [esp + 4], ebx
mov byte [esp + 8], bl
xor ebx, ebx
jmp 0x4d2a8d
mov eax, ebx
or eax, 0xf
mov dword [esp + 4], eax
inc eax
push eax
mov edi, ecx
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, edi
mov edx, dword [esp + 4]
add esp, 4
mov edi, eax
mov eax, dword [esp + 4]
add eax, 2
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
movzx eax, byte [edx + 0x20]
and al, 1
mov ebx, dword [esp + 4]
mov dword [esp + 4], ebx
mov ebx, edi
test byte [esp + 4], 1
lea edi, [esp + 9]
cmove ebx, edi
test al, al
je 0x4d2aa2
mov eax, dword [edx + 0x28]
jmp 0x4d2aa5
lea eax, [edx + 0x21]
push ecx
push eax
push ebx
mov edi, ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [ebx + edi], 0x73616820
mov word [ebx + edi + 4], 0x20
movzx eax, byte [esp + 8]
test al, 1
je 0x4d2ad7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 8]
jmp 0x4d2ae1
shr eax, 1
lea ebx, [esp + 8]
lea edx, [esp + 9]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.00550f3c
test byte [esp + 8], 1
je 0x4d2aff
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [esp]
mov word [esp + 0x44], 0x503
mov dword [esp + 0x34], str.invalid
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], str.__0x
mov word [esp + 0x6c], 0x302
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x78], eax
mov word [esp + 0x80], 0xe02
lea edi, [esp + 0x70]
mov dword [esp + 8], edi
mov dword [esp + 0x10], 0x5580d8
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x20]
push ebx
call fcn.00550b46
movzx eax, byte [esp + 0x20]
test al, 1
je 0x4d2b87
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x4d2b8d
shr eax, 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.00550f3c
test byte [esp + 0x20], 1
je 0x4d2bab
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [esp]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x4d2c5a
mov word [esp + 0x44], 0x503
mov dword [esp + 0x34], str._or
mov ecx, dword [edx + 0x34]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], eax
lea eax, [edx + 0x10]
mov dword [esp + 0x78], eax
mov dword [esp + 8], edi
mov dword [esp + 0x64], str.__0x
mov word [esp + 0x6c], 0x302
mov word [esp + 0x80], 0xe02
mov dword [esp + 0x10], 0x5580d8
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x20]
push ebx
call fcn.00550b46
movzx eax, byte [esp + 0x20]
test al, 1
je 0x4d2c33
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x4d2c39
shr eax, 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.00550f3c
test byte [esp + 0x20], 1
je 0x4d2c57
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [esp]
mov ecx, dword [edx + 0x1c]
mov word [esp + 0x18], 0x104
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
push ebx
call fcn.0053aad0
test byte [esp + 0x48], 1
je 0x4d2c85
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
xor edi, edi
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 8]
call fcn.00407790
int3