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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + 8]
lea esi, [esp + 0x48]
mov ecx, esi
mov edi, edx
mov dword [esp + 4], edx
push 9
push 0x3dd728a
mov dword [esp + 8], eax
push eax
call fcn.03d96060
add esp, 0xc
cmp dword [esi], 0
je 0x3d9e7d7
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
mov edx, ebx
mov dword [esp + 0x10], ecx
sub edx, ecx
mov dword [esp + 8], eax
cmp edx, eax
jae 0x3d9e7e2
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
cmp esi, eax
mov dword [esp + 0x20], esi
cmova eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
lea eax, [ecx - 1]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x30]
mov cl, byte [eax + edx]
xor eax, eax
xor ebx, ebx
inc ebx
shld eax, ebx, cl
mov esi, edx
mov edx, ebx
shl edx, cl
test cl, 0x20
cmovne eax, edx
mov ecx, 0
cmovne edx, ecx
and eax, dword [esp + 0x40]
and edx, dword [esp + 0x44]
or edx, eax
je 0x3d9e751
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp eax, ebx
cmovb ebx, eax
cmp edi, 0xffffffff
cmove ebx, eax
lea eax, [ebx - 1]
mov dword [esp + 0x2c], eax
lea edi, [esi - 1]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x3c]
lea edx, [eax + esi]
mov ecx, ebx
sub ecx, 1
jb 0x3d9e75e
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x10]
jae 0x3d9ebc2
lea esi, [edi + ebx]
cmp esi, dword [esp + 8]
jae 0x3d9ebd0
mov eax, dword [esp + 0x14]
mov al, byte [eax + ebx - 1]
cmp al, byte [edx + ebx]
mov ebx, ecx
je 0x3d9e70c
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x10]
mov edx, ecx
mov edi, dword [esp + 0x34]
jmp 0x3d9e7bc
mov eax, dword [esp + 0x10]
cmp edi, 0xffffffff
mov edx, esi
jne 0x3d9e7c1
jmp 0x3d9e7c5
mov edi, dword [esp + 0x34]
cmp edi, 0xffffffff
mov ecx, dword [esp + 0x18]
cmove ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
cmp ecx, esi
cmovbe ecx, esi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
add eax, edx
mov edx, esi
cmp ecx, edx
je 0x3d9e7ed
cmp dword [esp + 0x28], edx
je 0x3d9ebe0
mov esi, dword [esp + 0xc]
add esi, edx
cmp esi, dword [esp + 8]
jae 0x3d9ebf2
mov esi, dword [esp + 0x14]
mov bl, byte [esi + edx]
lea esi, [edx + 1]
cmp bl, byte [eax + edx]
mov edx, esi
je 0x3d9e783
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
sub edx, eax
cmp edi, 0xffffffff
je 0x3d9e7c5
mov dword [esp + 0x18], eax
mov ebx, edx
sub edx, dword [esp + 0x10]
cmp edx, dword [esp + 8]
jb 0x3d9e6af
jmp 0x3d9e7e2
cmp byte [esp + 0x56], 0
je 0x3d9e8c3
mov al, 1
mov dword [esp + 8], eax
jmp 0x3d9e9e0
mov edx, dword [esp + 0xc]
lea ebx, [edx + 9]
mov eax, dword [esp]
lea ecx, [eax - 0x11]
mov dword [esp + 0x2c], ecx
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, eax
sub ecx, edx
add ecx, 0xfffffff7
mov esi, edx
mov edx, dword [esp + 4]
mov dword [esp + 0xc], esi
add edx, esi
add edx, 9
mov dword [esp + 8], edx
xor edi, edi
mov edx, ebx
mov dword [esp + 0x14], ebx
mov esi, ebx
mov ebx, eax
add esi, edi
je 0x3d9e859
cmp eax, esi
jbe 0x3d9e848
mov ebx, dword [esp + 8]
cmp byte [ebx + edi], 0xbf
jle 0x3d9ec89
mov ebx, eax
sub ebx, edx
jmp 0x3d9e859
mov eax, dword [esp + 0x10]
mov ebx, ecx
add eax, edi
mov eax, dword [esp]
jne 0x3d9ec89
test ebx, ebx
je 0x3d9e876
mov eax, dword [esp + 8]
mov al, byte [eax + edi]
add al, 0xd0
cmp al, 0xa
mov ebx, dword [esp + 0x14]
jae 0x3d9e885
inc edx
inc edi
dec ecx
mov eax, dword [esp]
jmp 0x3d9e828
mov ebx, dword [esp + 0x14]
lea edx, [ebx + edi]
mov ecx, dword [esp + 4]
add ecx, edx
jmp 0x3d9e892
lea edx, [ebx + edi]
mov eax, dword [esp + 4]
lea ecx, [edx + eax]
mov eax, dword [esp]
test esi, esi
je 0x3d9e9b2
mov eax, dword [esp]
sub eax, edx
jbe 0x3d9e9ac
cmp byte [ecx], 0xbf
jg 0x3d9e9b2
mov ecx, dword [esp + 4]
mov eax, edx
mov edx, dword [esp]
push 0x3dd7350
push edx
push eax
call fcn.03dcc770
mov cl, byte [esp + 0x55]
mov eax, dword [esp + 0x50]
test cl, cl
sete dl
test eax, eax
je 0x3d9eb1b
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
xor ecx, ecx
dec ecx
mov dword [esp + 0x14], edi
cmp eax, dword [esp + 8]
mov dword [esp + 0xc], edx
jae 0x3d9e900
cmp byte [edi + eax], 0xbf
jg 0x3d9e906
jmp 0x3d9ecab
jne 0x3d9ecab
mov bl, byte [edi + eax - 1]
test bl, bl
js 0x3d9e913
movzx esi, bl
jmp 0x3d9e961
movzx ecx, byte [edi + eax - 2]
cmp cl, 0xc0
jge 0x3d9e943
movzx edx, byte [edi + eax - 3]
mov esi, edx
cmp dl, 0xc0
jge 0x3d9e948
mov edi, dword [esp + 0x14]
movzx edi, byte [edi + eax - 4]
and edi, 7
shl edi, 6
and esi, 0x3f
or esi, edi
mov edi, dword [esp + 0x14]
jmp 0x3d9e94b
and ecx, 0x1f
jmp 0x3d9e953
and esi, 0xf
shl esi, 6
and ecx, 0x3f
or ecx, esi
shl ecx, 6
and bl, 0x3f
movzx esi, bl
or esi, ecx
xor ecx, ecx
dec ecx
test byte [esp + 0xc], 1
je 0x3d9eb49
cmp esi, 0x110000
je 0x3d9e7e2
mov ebx, ecx
cmp esi, 0x80
jb 0x3d9e99d
mov ebx, 0xfffffffe
cmp esi, 0x800
jb 0x3d9e99d
xor ebx, ebx
cmp esi, 0x10000
setb bl
or ebx, 0xfffffffc
xor edx, edx
add eax, ebx
jne 0x3d9e8eb
jmp 0x3d9e7f1
jne 0x3d9e8ae
mov dword [esp + 0x18], ecx
mov cl, 1
mov dword [esp + 8], ecx
cmp eax, 8
jb 0x3d9e9e0
mov dword [esp + 0x24], edx
mov eax, 0x6c6f6320
mov edx, dword [esp + 0x18]
xor eax, dword [edx]
mov ecx, 0x206e6d75
xor ecx, dword [edx + 4]
or ecx, eax
je 0x3d9ea78
mov eax, dword [esp]
mov esi, dword [esp + 0x1c]
cmp dword [esi], eax
mov ecx, eax
jbe 0x3d9ea1a
mov eax, dword [0x3de3a38]
test ecx, ecx
je 0x3d9ea1e
mov esi, ecx
push ecx
push dword [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov dword [esp + 4], eax
test eax, eax
jne 0x3d9ea34
xor ecx, ecx
inc ecx
mov edx, esi
call fcn.03dcc180
mov esi, ecx
jmp 0x3d9ea34
mov esi, ecx
push dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
mov dword [esp + 4], eax
mov al, byte [0x3de3a90]
xor ebx, ebx
xor ecx, ecx
mov edx, 0x14
call fcn.03db9190
test eax, eax
je 0x3d9ec9c
cmp byte [esp + 8], 0
mov edx, dword [esp + 0x14]
cmovne edx, ebx
cmovne edi, ebx
mov dword [eax], ebx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub dword [esp + 0x2c], edi
mov eax, dword [esp + 4]
lea edx, [edi + eax]
add edx, 0x11
add edi, 0x11
mov eax, dword [esp + 0x24]
lea ecx, [eax + 8]
mov eax, dword [esp + 0xc]
neg eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
add ecx, edi
mov dword [esp + 0x10], ecx
je 0x3d9eae6
mov eax, dword [esp]
cmp eax, dword [esp + 0x10]
jbe 0x3d9ead2
mov ebx, dword [esp + 0xc]
cmp byte [edx + ebx], 0xbf
jle 0x3d9ecbe
sub eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
jmp 0x3d9eae6
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0xc], eax
jne 0x3d9ecbe
mov ecx, dword [esp + 0x30]
add eax, ecx
test eax, eax
je 0x3d9eb03
mov eax, dword [esp + 0xc]
mov al, byte [edx + eax]
add al, 0xd0
cmp al, 0xa
jae 0x3d9eb03
inc dword [esp + 0x28]
inc edi
dec dword [esp + 0x2c]
inc edx
jmp 0x3d9eaa2
add edi, dword [esp + 0xc]
mov eax, dword [esp]
cmp edi, eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
jae 0x3d9eb2a
jmp 0x3d9e9e3
xor edx, edx
test cl, cl
jne 0x3d9e7f1
jmp 0x3d9e7e2
mov eax, edx
sub eax, ebx
jb 0x3d9eb60
test ebx, ebx
je 0x3d9eb52
cmp ebx, dword [esp]
jae 0x3d9eb50
mov ecx, dword [esp + 4]
cmp byte [ecx + ebx], 0xc0
mov ecx, dword [esp + 0x18]
jge 0x3d9eb52
jmp 0x3d9eb60
mov edx, eax
jmp 0x3d9e7f1
jne 0x3d9eb60
test esi, esi
je 0x3d9eb76
cmp dword [esp], edx
jbe 0x3d9eb74
cmp byte [ecx], 0xbf
jg 0x3d9eb76
mov ecx, dword [esp + 4]
mov eax, edx
mov edx, dword [esp]
push 0x3dd7370
push eax
jmp 0x3d9ece1
jne 0x3d9eb60
add ebx, dword [esp + 4]
lea esi, [esp + 0x48]
mov ecx, esi
mov edx, ebx
push eax
call fcn.03d96ad0
add esp, 4
cmp byte [esi], 0
jne 0x3d9e9e0
mov eax, edi
mov ebx, dword [esp + 0x20]
sub eax, ebx
mov esi, dword [esp + 0x1c]
jb 0x3d9ecd4
mov edx, dword [esp + 0x4c]
test ebx, ebx
je 0x3d9ec13
cmp dword [esp], ebx
jbe 0x3d9ec0d
mov ecx, dword [esp + 4]
cmp byte [ecx + ebx], 0xc0
jge 0x3d9ec13
jmp 0x3d9ecd4
mov edx, dword [esp + 0x10]
push 0x3dd6fc8
call fcn.03dcc2b0
mov ecx, esi
mov edx, dword [esp + 8]
push 0x3dd6fd8
call fcn.03dcc2b0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push 0x3dd6fa8
call fcn.03dcc2b0
mov ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
cmp edx, ecx
cmova ecx, edx
push 0x3dd6fb8
call fcn.03dcc2b0
jne 0x3d9ecd4
cmp dword [esp + 0x10], 0
je 0x3d9ec23
cmp dword [esp], edi
jne 0x3d9ecd4
mov dword [esp + 0x14], edx
add ebx, dword [esp + 4]
lea edi, [esp + 0x48]
mov ecx, edi
mov edx, ebx
push eax
call fcn.03d96ad0
add esp, 4
cmp byte [edi], 0
je 0x3d9ec49
mov eax, dword [esp]
jmp 0x3d9e9e7
mov edi, dword [esp + 0x4c]
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x3d9ec65
mov dword [esp + 8], 0
jmp 0x3d9e9e7
test ecx, ecx
je 0x3d9ec77
cmp eax, ecx
jbe 0x3d9ec77
mov eax, dword [esp + 4]
cmp byte [eax + ecx], 0xbf
jle 0x3d9ece7
mov dword [esi + 8], ecx
mov dword [esp + 8], 0
mov eax, ecx
jmp 0x3d9e9e7
mov ecx, dword [esp + 4]
mov edx, dword [esp]
push 0x3dd7340
push edx
push esi
call fcn.03dcc770
mov ecx, 4
mov edx, 0x14
call fcn.03dcc180
mov ecx, edi
mov edx, dword [esp + 8]
push 0x3dd6ff8
push eax
push 0
call fcn.03dcc770
mov ecx, dword [esp + 4]
mov edx, dword [esp]
push 0x3dd7360
push edx
push dword [esp + 0x18]
call fcn.03dcc770
mov ecx, dword [esp + 4]
mov edx, dword [esp]
push 0x3dd7380
push edi
push ebx
call fcn.03dcc770
mov ecx, str.assertion_failed:_self.is_char_boundary_new_len__rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_string.rs
mov edx, 0x30
push 0x3dd8ba4
call fcn.03dcc370
int3