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

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x48]
xor edx, edx
not ecx
dec ecx
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, edx
mov ebx, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
jne 0x404b8d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp ebx, edx
je 0x404e56
cmp ebx, esi
jg 0x404e56
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], edx
cmp eax, edx
mov dword [esp + 0x1c], edx
je 0x404bc3
mov edi, dword [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x68]
mov ecx, 1
cmp eax, edx
je 0x404bd4
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x74], edx
jne 0x404be4
mov dword [esp + 0x18], SysReAllocString
jmp 0x404bec
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, ebx
lea esi, [eax + 1]
cmp ecx, esi
jg 0x404e56
cmp dword [esp + 0x18], edx
jle 0x404e56
cmp ecx, edx
jle 0x404e56
lea ecx, [ecx + ebp - 1]
lea eax, [eax + ebp + 1]
mov dword [esp + 0x2c], ecx
mov esi, ecx
mov ecx, dword [esp + 0x78]
xor edi, edi
cmp ecx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
je 0x404c68
cmp esi, eax
jae 0x404e56
mov ecx, dword [esp + 0x48]
push ebx
push ecx
push esi
call fcn.00407244
add esp, 0xc
test eax, eax
jne 0x404c55
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
je 0x404ca1
add esi, ebx
jmp 0x404c60
cmp byte [esi], 0
jge 0x404c5f
add esi, 2
jmp 0x404c60
inc esi
cmp esi, dword [esp + 0x14]
jb 0x404c35
jmp 0x404ca1
cmp esi, eax
jae 0x404e56
mov edx, dword [esp + 0x48]
push ebx
push edx
push esi
call fcn.00412a6f
add esp, 0xc
test eax, eax
jne 0x404c90
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
je 0x404ca1
add esi, ebx
jmp 0x404c9b
cmp byte [esi], 0
jge 0x404c9a
add esi, 2
jmp 0x404c9b
inc esi
cmp esi, dword [esp + 0x14]
jb 0x404c70
test edi, edi
mov dword [esp + 0x10], edi
je 0x404e56
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub eax, ebx
imul eax, edi
add eax, esi
mov dword [esp + 0x30], eax
inc eax
push eax
call fcn.00404520
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov esi, eax
mov eax, dword [esp + 0x7c]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x14]
je 0x404d84
cmp edi, eax
jae 0x404e42
mov eax, dword [esp + 0x48]
push ebx
push eax
push edi
call fcn.00407244
add esp, 0xc
test eax, eax
jne 0x404d46
mov ebx, edi
sub ebx, ebp
push ebx
push ebp
push esi
call fcn.00407120
mov eax, dword [esp + 0x30]
add esi, ebx
add esp, 0xc
test eax, eax
mov byte [esi], 0
je 0x404d2f
mov ebx, dword [esp + 0x1c]
push ebx
push eax
push esi
call fcn.00407120
add esp, 0xc
add esi, ebx
mov byte [esi], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add edi, ecx
dec eax
mov ebp, edi
mov dword [esp + 0x10], eax
je 0x404d6b
mov ebx, ecx
jmp 0x404d51
cmp byte [edi], 0
jge 0x404d50
add edi, 2
jmp 0x404d51
inc edi
cmp edi, dword [esp + 0x14]
jb 0x404cec
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax + ecx], 0
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, edi
sub ecx, edx
cmp ecx, eax
jg 0x404e42
jmp 0x404e1b
cmp edi, eax
jae 0x404e42
mov eax, dword [esp + 0x48]
push ebx
push eax
push edi
call fcn.00412a6f
add esp, 0xc
test eax, eax
jne 0x404de6
mov ebx, edi
sub ebx, ebp
push ebx
push ebp
push esi
call fcn.00407120
mov eax, dword [esp + 0x30]
add esi, ebx
add esp, 0xc
test eax, eax
mov byte [esi], 0
je 0x404dcf
mov ebx, dword [esp + 0x1c]
push ebx
push eax
push esi
call fcn.00407120
add esp, 0xc
add esi, ebx
mov byte [esi], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add edi, ecx
dec eax
mov ebp, edi
mov dword [esp + 0x10], eax
je 0x404e0b
mov ebx, ecx
jmp 0x404df1
cmp byte [edi], 0
jge 0x404df0
add edi, 2
jmp 0x404df1
inc edi
cmp edi, dword [esp + 0x14]
jb 0x404d8c
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax + ecx], 0
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
mov ecx, edi
sub ecx, edx
cmp ecx, eax
jg 0x404e42
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov byte [eax + ecx], 0
pop ebx
add esp, 0x24
ret
push ebp
call fcn.00404b10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret