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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x1a8]
mov eax, dword [ecx + 0x28]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xa8]
mov eax, dword [edx + 0x60]
test eax, eax
je 0x446756
mov edi, dword [edx + 0x9c]
mov dword [ebp - 0x44], edi
test edi, edi
je 0x4466b4
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x78]
test edi, edi
jne 0x4466a0
mov eax, dword [eax + 0x38]
test al, 2
je 0x44627d
mov ebx, dword [ecx + 0x2c]
xor esi, esi
add dword [ebp - 0x38], ebx
adc dword [ebp - 0x34], esi
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0x74]
mov dword [ebp - 0x3c], ebx
mov ecx, dword [ecx + 0x30]
mov dword [ebp - 0x40], ecx
cmp dword [edx + 0x98], 0xfff
ja 0x4462a1
and ah, 0xfe
mov edi, dword [ebp + 8]
mov dword [edi + 0x38], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
test eax, eax
je 0x446762
xor ebx, ebx
lea esi, [esi]
inc ebx
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4462b4
lea eax, [ebx*4 + 4]
mov dword [esp], eax
call fcn.00437dcc
mov edi, eax
test eax, eax
je 0x44665c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x44677b
xor edx, edx
lea esi, [esi]
mov dword [edi + edx*4], eax
inc edx
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4462e8
shl edx, 2
mov dword [edi + edx], 0
mov dword [esp + 0xc], 0x445c30
mov dword [esp + 8], 4
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_qsort
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], 0
mov dword [eax + 0x70], 0
test ebx, ebx
je 0x44676e
xor esi, esi
xor ecx, ecx
mov eax, 1
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 8]
jmp 0x446356
mov dword [edx + 0x88], 1
inc ecx
cmp ecx, dword [ebp - 0x30]
jae 0x446385
mov esi, edx
mov edx, dword [edi + ecx*4]
mov dword [edx + 0xc], 0
test esi, esi
je 0x446560
mov dword [edx + 0x10], esi
mov dword [esi + 0xc], edx
mov dword [ebx + 0x70], edx
mov esi, dword [edx + 0x24]
test esi, esi
je 0x446344
mov dword [edx + 0x88], eax
inc eax
inc ecx
cmp ecx, dword [ebp - 0x30]
jb 0x446354
mov dword [esp], edi
mov dword [ebp - 0x50], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x50]
cmp eax, 0x7fff
jg 0x446725
mov eax, dword [ebp - 0x40]
imul eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
add dword [ebp - 0x30], ecx
adc dword [ebp - 0x2c], ebx
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x6c]
test ebx, ebx
je 0x4465d7
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x44]
neg eax
mov dword [ebp - 0x4c], eax
jmp 0x4464c3
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x5c], 1
shl dword [ebp - 0x5c], cl
mov edi, dword [ebp - 0x5c]
dec edi
mov dword [ebp - 0x38], edi
and dh, 1
je 0x446416
test al, 1
je 0x446416
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebp - 0x30]
xor edx, edx
div dword [ebp - 0x44]
mov eax, edx
xor edx, edx
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], edx
mov eax, dword [ebx + 0x24]
mov edx, dword [ebp - 0x44]
lea eax, [edx + eax - 1]
mov ecx, dword [ebp - 0x4c]
and eax, ecx
mov dword [ebp - 0x40], eax
mov dword [ebx + 0x24], eax
mov edx, eax
xor ecx, ecx
add edx, dword [ebp - 0x30]
adc ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x446570
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x40]
jb 0x446680
mov edi, dword [ebp - 0x5c]
neg edi
and edi, eax
mov dword [ebx + 0x24], edi
xor eax, eax
cmp edi, dword [ebp - 0x40]
setne al
mov dword [ebp - 0x38], eax
mov eax, edi
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
add dword [ebp - 0x30], edx
adc dword [ebp - 0x2c], ecx
cmp dword [esi], edi
jae 0x44648d
mov dword [ebp - 0x38], 1
mov esi, dword [ebx]
mov edi, str..lib
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
jne 0x4465bc
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
or byte [ebx + 0x18], 1
mov dword [ebp - 0x3c], ebx
nop
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x4465cc
mov edi, dword [ebx + 0x8c]
test edi, edi
je 0x446608
mov esi, dword [edi + 0x28]
test esi, esi
je 0x446634
mov eax, dword [esi]
test eax, eax
jne 0x4464e7
mov eax, dword [ebx + 0x24]
mov dword [esi], eax
mov eax, dword [ebx + 0x14]
test ah, 1
je 0x4464b8
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x4464b8
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x38]
mov ecx, edx
and ecx, 2
mov dword [ebp - 0x48], ecx
je 0x4463e4
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x5c], 1
shl dword [ebp - 0x5c], cl
mov edi, dword [ebp - 0x5c]
dec edi
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x40]
add edi, dword [ebp - 0x38]
jb 0x44668c
mov ecx, dword [ebp - 0x5c]
neg ecx
and ecx, edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4463f8
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ecx + 0x24]
sub edi, dword [ebp - 0x40]
add edi, dword [ebp - 0x30]
mov dword [ecx + 0x24], edi
jmp 0x4463f8
mov dword [edx + 0x10], 0
mov dword [ebx + 0x6c], edx
jmp 0x44636e
mov dword [ebp - 0x3c], edx
mov edi, edx
add edi, dword [ebp - 0x38]
mov dword [ebp - 0x38], edi
jb 0x446668
mov edi, dword [ebp - 0x5c]
neg edi
and edi, dword [ebp - 0x38]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
xor eax, edx
mov edx, dword [ebp - 0x2c]
xor edx, ecx
or edx, eax
setne dl
movzx edx, dl
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
lea edi, [eax + edi]
mov dword [ebx + 0x24], edi
jmp 0x446482
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x4464c3
nop
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x4466ca
mov eax, dword [ebp - 0x30]
lea edx, [eax + 3]
cmp eax, edx
ja 0x4466c0
and edx, 0xfffffffc
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xa8]
mov dword [eax + 0x20], edx
or byte [edi + 0xb4], 0x20
mov eax, 1
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], 0x2c
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.00434348
mov dword [ebx + 0x8c], eax
test eax, eax
je 0x44665c
mov edi, eax
mov esi, dword [edi + 0x28]
test esi, esi
jne 0x4464dc
nop
mov dword [esp + 4], 8
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.00434348
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 0x28]
test esi, esi
jne 0x4464dc
nop
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
mov edi, 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0
jmp 0x446593
mov edi, 0xffffffff
jmp 0x44645f
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0
jmp 0x446541
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x38]
or eax, 2
mov dword [edi + 0x38], eax
jmp 0x44626e
mov dword [ebp - 0x44], 1
jmp 0x44625d
mov edx, 0xffffffff
jmp 0x4465e8
mov byte [ebp - 0x19], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call fcn.0043be6c
test eax, eax
jne 0x44665c
mov ebx, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
lea eax, [ebp - 0x19]
mov dword [esp], eax
call fcn.0043bd50
dec eax
je 0x4465d7
xor eax, eax
jmp 0x44665e
mov dword [esp], 0x12
call fcn.004328a0
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], str._B:_too_many_sections___d_
call dword [0x49e8c0]
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
mov dword [ebp - 0x44], 0x200
jmp 0x44625d
mov eax, 4
xor ebx, ebx
jmp 0x4462c3
mov dword [esp], edi
call sub.msvcrt.dll_free
jmp 0x44639e
xor edx, edx
jmp 0x4462f6