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

Disassembly:
sub esp, 0x2a4
push ebx
mov ebx, dword [esp + 0x2b0]
push ebp
push esi
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov eax, edx
push edi
cmp eax, edx
je 0x44607b
mov esi, dword [eax]
add eax, 4
mov dword [ecx], esi
add ecx, 4
cmp eax, edx
jne 0x44606d
mov eax, dword [ebx + 8]
mov ebp, dword [esp + 0x2c0]
mov dword [esp + 0x34], eax
mov dword [ebx + 8], ecx
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x2c4]
add eax, ebp
mov edx, dword [eax + 0x78]
mov esi, dword [eax + 0x7c]
cmp edx, ecx
mov dword [esp + 0x28], edx
lea eax, [esi + edx]
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
jae 0x4465fd
lea edi, [edx + 0x28]
cmp edi, ecx
jae 0x4465fd
cmp esi, ecx
jae 0x4465fd
cmp eax, ecx
jae 0x4465fd
mov edi, dword [edx + ebp + 0x14]
mov ecx, dword [edx + ebp + 0x18]
cmp edi, ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], ecx
jb 0x4465fd
test edi, edi
jbe 0x4465fd
mov eax, dword [edx + ebp + 0x20]
cmp eax, edx
mov dword [esp + 0x1c], eax
jb 0x4465fd
shl ecx, 2
add ecx, eax
mov eax, dword [esp + 0x30]
cmp ecx, eax
jae 0x4465fd
mov ecx, dword [esp + 0x2c]
shl ecx, 2
cmp ecx, esi
jae 0x4465fd
mov esi, dword [edx + ebp + 0x24]
cmp esi, edx
jb 0x4465fd
mov ecx, dword [esp + 0x2c]
lea ecx, [esi + ecx*2]
cmp ecx, eax
jae 0x4465fd
mov ecx, dword [edx + ebp + 0x1c]
cmp ecx, edx
jb 0x4465fd
lea edx, [ecx + edi*4]
cmp edx, eax
jae 0x4465fd
mov edx, dword [esp + 0x18]
lea eax, [edi*4]
cmp eax, edx
jae 0x4465fd
mov eax, dword [esp + 0x1c]
add ecx, ebp
add eax, ebp
add esi, ebp
test edi, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x20], 0
jbe 0x4465fd
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c4]
mov esi, dword [ecx]
push esi
push edx
push ebp
call fcn.00445f40
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4465dd
push edi
call fcn.00445fa0
add esp, 4
cmp al, 1
jne 0x4465dd
push edi
call fcn.00445fc0
add esp, 4
test al, al
jne 0x4465dd
cmp esi, dword [esp + 0x2c4]
jae 0x4465dd
cmp esi, dword [esp + 0x28]
jb 0x4461ec
cmp esi, dword [esp + 0x30]
jb 0x4465dd
cmp esi, dword [esp + 0x2d0]
jae 0x4465dd
mov ecx, dword [esp + 0x2cc]
lea eax, [esi + ebp]
mov dword [esp + 0x24], eax
xor edi, edi
lea edx, [esi + ecx]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x2c4]
sub eax, ebp
cmp eax, ecx
jae 0x4465dd
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2cc]
sub eax, edx
cmp eax, ecx
jae 0x4465dd
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x446259
inc edi
inc eax
inc edx
cmp edi, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jb 0x446210
jmp 0x4465dd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00445fd0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x4465dd
cmp eax, 0x50
jae 0x4465dd
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x14], eax
jbe 0x4462b2
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
xor ebp, ebp
mov bp, word [ecx]
cmp ebp, edx
je 0x44631a
mov ebp, dword [esp + 0x2c]
inc eax
add ecx, 2
cmp eax, ebp
jb 0x446296
mov ebp, dword [esp + 0x2c0]
mov edx, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2c8]
lea eax, [edi + esi]
sub edx, edi
add eax, ecx
sub edx, esi
xor ecx, ecx
cmp edx, 0x10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
jbe 0x446349
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x50], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x48]
mov ecx, dword [ecx + 0xc]
push edx
push eax
lea eax, [esp + 0x54]
push 0x10
push eax
mov dword [esp + 0x68], ecx
call fcn.00420280
add esp, 0x10
cmp al, 1
jne 0x446345
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x60], ecx
jmp 0x446349
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov eax, dword [edx + eax*4]
cmp eax, ecx
jb 0x4462ab
cmp eax, dword [esp + 0x30]
jae 0x4462ab
mov ebp, dword [esp + 0x2c0]
add eax, ebp
mov dword [esp + 0x14], eax
jmp 0x4462b2
mov ecx, dword [esp + 0x60]
test ecx, ecx
mov word [esp + 0x64], 0
je 0x44637d
push ecx
mov ecx, dword [esp + 0x2bc]
push ecx
call fcn.00444c90
add esp, 8
test eax, eax
je 0x44637d
push 0x104
lea edx, [esp + 0x68]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov byte [esp + 0x26c], 0
test eax, eax
je 0x4463ab
push 0x40
push eax
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esp + 0x2ab], 0
jmp 0x4463d0
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x26c]
mov edx, dword [ecx + ebp + 0x10]
add edx, edi
push edx
push str._Ordinal:_d_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x2ac], ecx
sar eax, 2
cmp eax, 1
mov dword [esp + 0x14], edx
mov edi, esi
jae 0x4464e5
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x44640c
mov eax, esi
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x446411
mov eax, 1
test ecx, ecx
jne 0x446419
xor esi, esi
jmp 0x44641e
sub esi, ecx
sar esi, 2
add eax, esi
test eax, eax
mov dword [esp + 0x44], eax
jge 0x44642a
xor eax, eax
lea ecx, [eax*4]
push ecx
call sub.MFC42u.DLL_operatornew
mov esi, dword [ebx + 4]
add esp, 4
cmp esi, edi
mov dword [esp + 0x18], eax
mov ebp, eax
je 0x44645b
push esi
push ebp
call fcn.00446890
add esi, 4
add esp, 8
add ebp, 4
cmp esi, edi
jne 0x446447
lea edx, [esp + 0x14]
push edx
push ebp
call fcn.00446890
mov eax, dword [esp + 0x2c4]
add esp, 8
mov esi, edi
mov ebx, dword [eax + 8]
cmp edi, ebx
je 0x446490
lea edi, [ebp + 4]
push esi
push edi
call fcn.00446890
add esi, 4
add esp, 8
add edi, 4
cmp esi, ebx
jne 0x44647c
mov esi, dword [esp + 0x2bc]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x44], eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
add esp, 4
lea eax, [ecx + edx*4]
mov edx, dword [esi + 4]
test edx, edx
mov dword [esi + 0xc], eax
jne 0x4464c0
xor eax, eax
jmp 0x4464c8
mov eax, dword [esi + 8]
sub eax, edx
sar eax, 2
mov ebp, dword [esp + 0x2c0]
mov ebx, dword [esp + 0x2bc]
lea edx, [ecx + eax*4 + 4]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
jmp 0x4465a3
mov eax, esi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x44655f
cmp edi, esi
mov eax, edi
je 0x44650a
lea ebp, [eax + 4]
push eax
push ebp
call fcn.00446890
mov eax, ebp
add esp, 8
cmp eax, esi
jne 0x4464f7
mov ecx, dword [ebx + 8]
mov eax, 1
mov edx, ecx
mov esi, ecx
sub edx, edi
sar edx, 2
sub eax, edx
je 0x446535
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00446890
add esp, 8
add esi, 4
dec ebp
jne 0x446521
mov ecx, dword [ebx + 8]
mov eax, edi
cmp edi, ecx
je 0x44654b
mov edx, dword [esp + 0x14]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x44653e
mov ebx, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c0]
add dword [ebx + 8], 4
jmp 0x4465a3
lea eax, [esi - 4]
push esi
push esi
push eax
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.00446860
mov ecx, dword [ebx + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x446589
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x44657a
lea ecx, [edi + 4]
mov eax, edi
cmp edi, ecx
je 0x44659f
mov edx, dword [esp + 0x14]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x446592
add dword [ebx + 8], 4
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push 1
mov ecx, dword [eax + ebp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x2e4]
push edx
push eax
mov eax, dword [esp + 0x2e8]
lea edx, [esp + 0x6c]
push ecx
push edx
push eax
call dword [esp + 0x2f0]
add esp, 0x1c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jb 0x44618b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a4
ret