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

Disassembly:
sub esp, 0x394
push ebx
push ebp
mov ebp, dword [esp + 0x3a0]
mov eax, 1
push esi
push edi
lea ecx, [ebp + 5]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], SysReAllocString
mov dword [esp + 0x24], 0x3fffffff
mov dword [esp + 0x28], 0x1fffffff
mov dword [esp + 0x2c], 0xfffffff
mov dword [esp + 0x30], 0x7ffffff
mov dword [esp + 0x34], 0x3ffffff
mov dword [esp + 0x38], 0x1ffffff
mov dword [esp + 0x3c], 0xffffff
mov dword [esp + 0x40], 0x7fffff
mov dword [esp + 0x44], 0x3fffff
mov dword [esp + 0x48], 0x1fffff
mov dword [esp + 0x4c], 0xfffff
mov dword [esp + 0x50], 0x7ffff
mov dword [esp + 0x54], 0x3ffff
mov dword [esp + 0x58], 0x1ffff
mov dword [esp + 0x5c], 0xffff
mov dword [esp + 0x60], 0x7fff
mov dword [esp + 0x64], 0x3fff
mov dword [esp + 0x68], 0x1fff
mov dword [esp + 0x6c], 0xfff
mov dword [esp + 0x70], 0x7ff
mov dword [esp + 0x74], 0x3ff
mov dword [esp + 0x78], 0x1ff
mov dword [esp + 0x7c], 0xff
mov dword [esp + 0x80], 0x7f
mov dword [esp + 0x84], 0x3f
mov dword [esp + 0x88], 0x1f
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x90], 7
mov dword [esp + 0x94], 3
mov dword [esp + 0x98], eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp byte [eax + ebp + 4], 1
jb 0x5bdafc
mov bl, al
xor edx, edx
mov dl, byte [ecx]
mov bh, bl
mov eax, ebx
mov ecx, edx
shl eax, 0x10
mov dword [esp + 0x18], ecx
lea edi, [esp + esi + 0x9c]
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
add esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
inc ecx
cmp eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jle 0x5bdac4
mov byte [esp + esi + 0x9c], 0
mov dl, byte [esp + 0x9c]
mov ebx, esi
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], ebx
test dl, dl
movsx esi, dl
je 0x5bdb64
movsx edx, byte [esp + eax + 0x9c]
cmp edx, esi
jne 0x5bdb56
lea edx, [esp + eax*2 + 0x1a0]
movsx edi, byte [esp + eax + 0x9d]
inc eax
mov word [edx], cx
add edx, 2
inc ecx
cmp edi, esi
je 0x5bdb42
mov dl, byte [esp + eax + 0x9c]
shl ecx, 1
inc esi
test dl, dl
jne 0x5bdb2f
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 0x31c]
test ebx, ebx
rep stosd dword es:[edi], eax
jle 0x5bdbad
lea ecx, [esp + 0x1a0]
mov si, word [ecx]
xor edx, edx
mov dl, byte [eax + ebp + 0x15]
add ecx, 2
mov word [ebp + edx*2 + 0x11c], si
xor edx, edx
mov dl, byte [eax + ebp + 0x15]
inc eax
mov esi, edx
mov dl, byte [esp + eax + 0x9b]
cmp eax, ebx
mov byte [esi + ebp + 0x31c], dl
jl 0x5bdb7e
mov edx, 0xfffffffc
xor edi, edi
lea eax, [ebp + 5]
lea esi, [ebp + 0x444]
lea ecx, [ebp + 0x41e]
sub edx, ebp
cmp byte [eax], 0
je 0x5bdbed
mov bx, word [esp + edi*2 + 0x1a0]
mov word [ecx + 0x6c], di
mov word [ecx], bx
xor ebx, ebx
mov bl, byte [eax]
add edi, ebx
xor ebx, ebx
mov bx, word [esp + edi*2 + 0x19e]
mov dword [esi], ebx
jmp 0x5bdbf3
mov dword [esi], 0xffffffff
add ecx, 2
add esi, 4
inc eax
lea ebx, [edx + eax]
cmp ebx, 0x10
jle 0x5bdbc5
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp + 0x4ac]
mov dword [ebp + 0x484], 0xfffff
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jle 0x5bdc92
lea eax, [esp + 0x1a0]
mov dword [esp + 0x10], eax
movsx esi, byte [esp + ebx + 0x9c]
cmp esi, 8
jg 0x5bdc7e
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [ebx + ebp + 0x15]
xor eax, eax
mov ax, word [edx]
mov edi, ecx
mov ecx, 8
sub ecx, esi
shl eax, cl
cmp esi, 8
jge 0x5bdc9f
mov edx, dword [esp + esi*4 + 0x7c]
or edx, eax
cmp eax, edx
jg 0x5bdc7e
sub edx, eax
lea ecx, [ebp + eax*4 + 0x8ac]
inc edx
mov dword [ecx - 0x400], esi
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x5bdc70
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ebx
add ecx, 2
cmp ebx, eax
mov dword [esp + 0x10], ecx
jl 0x5bdc30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x394
ret 4
mov edx, eax
jmp 0x5bdc66