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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff88
mov ebx, eax
mov esi, 0x449d68
lea eax, reloc.MSVCRT.dll___dllonexit
mov dword [esp], eax
mov edx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov dword [esp + 4], edx
mov ecx, dword [esp]
mov eax, dword [ecx]
cmp eax, dword [esp + 4]
jne 0x5edb13
mov eax, dword [esp]
call fcn.005f4777
mov dl, 1
jmp 0x5edb15
xor edx, edx
test dl, dl
jne 0x5ee2ef
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
sub eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
and eax, dword [ebx + 0x24]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0x101
jae 0x5edb40
mov ecx, dword [esp + 8]
jmp 0x5edb45
mov ecx, 0x101
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], ecx
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov edx, dword [ebx]
mov ecx, eax
inc ecx
mov dl, byte [edx + eax]
mov byte [esp + 0xc], dl
and ecx, dword [ebx + 0x24]
mov edx, dword [ebx]
mov cl, byte [edx + ecx]
xor edx, edx
mov byte [esp + 0xd], cl
xor ecx, ecx
mov cl, byte [esp + 0xd]
mov dl, byte [esp + 0xc]
shl ecx, 8
add edx, ecx
and edx, 0x3fff
mov dword [esp + 0x10], edx
mov edx, eax
mov ecx, dword [ebx]
mov edi, dword [ebx]
movzx edi, byte [edi + edx + 1]
movzx ecx, byte [ecx + edx + 2]
mov edi, dword [esi + edi*4]
shl edi, 3
mov ecx, dword [esi + ecx*4]
shl ecx, 7
add ecx, edi
mov edi, dword [ebx]
movzx edx, byte [edi + edx]
add ecx, edx
mov edx, dword [ebx]
mov edi, ecx
xor ecx, ecx
mov cl, byte [edx + eax + 3]
and edi, 0x3ffff
mov edx, dword [esi + ecx*4]
add edx, edi
and edx, 0x3ffff
mov dword [esp + 0x14], edx
mov ecx, dword [ebx]
movzx eax, byte [ecx + eax + 4]
mov eax, dword [esi + eax*4]
add eax, eax
add eax, dword [esp + 0x14]
and eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], eax
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov ebp, dword [esp + 0x14]
movzx edx, byte [edx + ecx]
mov ecx, dword [ebx + 8]
and eax, 0xffffff00
or edx, eax
movzx eax, word [ecx + edi*2]
mov ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
and ecx, 0xffff0000
or eax, ecx
mov ecx, dword [ebx + 0xc]
and eax, dword [ebx + 0x24]
mov ecx, dword [ecx + ebp*4]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x10]
mov ebp, dword [esp + 0x18]
mov ecx, dword [ecx + ebp*4]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 4]
mov ebp, dword [esp + 0x10]
lea ebp, [ecx + ebp]
mov cl, byte [ebx + 0x149c]
mov byte [ebp], cl
mov bp, word [ebx + 0x149c]
mov ecx, dword [ebx + 8]
mov word [ecx + edi*2], bp
mov ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x14]
mov ebp, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov dword [ecx + edi*4], ebp
mov ecx, dword [ebx + 0x10]
mov edi, dword [esp + 0x18]
mov ebp, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov dword [ecx + edi*4], ebp
cmp eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
jb 0x5edc83
sub eax, 0x10000
and eax, dword [ebx + 0x24]
cmp edx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
jb 0x5edc94
sub edx, 0x100
and edx, dword [ebx + 0x24]
mov ecx, dword [esp + 0x20]
mov edi, dword [ebx]
movzx edi, byte [edi + ecx + 2]
mov edi, dword [esi + edi*4]
shl edi, 7
mov dword [esp + 0x28], edi
mov edi, dword [ebx]
movzx edi, byte [edi + ecx + 1]
mov edi, dword [esi + edi*4]
shl edi, 3
add dword [esp + 0x28], edi
mov edi, dword [ebx]
movzx edi, byte [edi + ecx]
add dword [esp + 0x28], edi
mov edi, dword [esp + 0x28]
and edi, 0x3ffff
mov dword [esp + 0x24], edi
mov edi, dword [ebx]
movzx edi, byte [edi + ecx + 3]
mov edi, dword [esi + edi*4]
add edi, dword [esp + 0x24]
and edi, 0x3ffff
mov dword [esp + 0x2c], edi
mov edi, dword [ebx]
movzx ecx, byte [edi + ecx + 4]
mov ecx, dword [esi + ecx*4]
add ecx, ecx
add ecx, dword [esp + 0x2c]
and ecx, dword [ebx + 0x1c]
cmp ecx, dword [esp + 0x18]
je 0x5edd09
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx]
mov edi, dword [esp + 0x1c]
mov cl, byte [ecx + edi]
mov byte [esp + 0x30], cl
mov ecx, dword [ebx]
mov cl, byte [ecx + eax]
mov byte [esp + 0x31], cl
mov ecx, dword [ebx]
mov cl, byte [ecx + edx]
mov byte [esp + 0x32], cl
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov ebp, dword [esp + 0x20]
mov dword [ecx + edi*4], ebp
mov dword [ebx + 0x58], 1
mov ecx, 1
jmp 0x5edd52
mov edi, dword [ebx + reloc.MSVCRT.dll___dllonexit]
xor ebp, ebp
mov dword [edi + ecx*4], ebp
inc ecx
cmp ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
jle 0x5edd46
xor ecx, ecx
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], ecx
mov cl, byte [esp + 0x30]
cmp cl, byte [esp + 0xc]
jne 0x5ede1b
mov ecx, dword [esp + 0x1c]
inc ecx
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
cmp cl, byte [esp + 0xd]
jne 0x5ede1b
mov ecx, dword [esp + 0x1c]
add ecx, 2
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
mov edi, dword [ebx + reloc.MSVCRT.dll___dllonexit]
add edi, 2
and edi, dword [ebx + 0x24]
mov ebp, dword [ebx]
cmp cl, byte [ebp + edi]
jne 0x5ede1b
mov ecx, dword [esp + 0x1c]
add ecx, 3
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
mov edi, dword [ebx + reloc.MSVCRT.dll___dllonexit]
add edi, 3
and edi, dword [ebx + 0x24]
mov ebp, dword [ebx]
cmp cl, byte [ebp + edi]
jne 0x5ede1b
cmp dword [ebx + reloc.MSVCRT.dll___dllonexit], 3
jle 0x5ede1b
mov ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
sub ecx, dword [esp + 0x1c]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x34], 0x40000
jae 0x5ede1b
cmp dword [esp + 0x34], 0
jbe 0x5ede1b
mov ecx, dword [esp + 0x34]
cmp ecx, dword [ebx + 0x28]
jae 0x5ede1b
mov dword [ebx + 0x58], 4
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov edi, dword [ebx + 0x54]
mov dword [ecx + 0x10], edi
mov cl, byte [esp + 0x31]
cmp cl, byte [esp + 0xc]
jne 0x5edeae
lea ecx, [eax + 1]
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
cmp cl, byte [esp + 0xd]
jne 0x5edeae
lea ecx, [eax + 2]
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
mov edi, dword [ebx + reloc.MSVCRT.dll___dllonexit]
add edi, 2
and edi, dword [ebx + 0x24]
mov ebp, dword [ebx]
cmp cl, byte [ebp + edi]
jne 0x5edeae
cmp dword [ebx + reloc.MSVCRT.dll___dllonexit], 2
jle 0x5edeae
mov ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
sub ecx, eax
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x38], 0x2000
jae 0x5edeae
cmp dword [esp + 0x38], 0
jbe 0x5edeae
cmp dword [ebx + 0x58], 4
jl 0x5ede94
mov eax, dword [ebx + 0x54]
shr eax, 5
cmp eax, dword [esp + 0x38]
jbe 0x5edeae
mov dword [ebx + 0x58], 3
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x54], eax
mov ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov eax, dword [ebx + 0x54]
mov dword [ecx + 0xc], eax
cmp dword [ebx + 0x58], 4
jge 0x5edf13
mov cl, byte [esp + 0x32]
cmp cl, byte [esp + 0xc]
jne 0x5edf13
lea eax, [edx + 1]
and eax, dword [ebx + 0x24]
mov ecx, dword [ebx]
mov al, byte [ecx + eax]
cmp al, byte [esp + 0xd]
jne 0x5edf13
cmp dword [ebx + reloc.MSVCRT.dll___dllonexit], 1
jle 0x5edf13
mov ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
sub ecx, edx
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x3c], ecx
cmp dword [ebx + 0x58], 1
je 0x5edef9
mov edx, dword [ebx + 0x54]
shr edx, 0xa
cmp edx, dword [esp + 0x3c]
jbe 0x5edf13
mov dword [ebx + 0x58], 2
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x54], eax
mov edx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov ecx, dword [ebx + 0x54]
mov dword [edx + 8], ecx
cmp dword [ebx + 0x58], 1
jle 0x5edf23
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], 4
cmp dword [esp + 0x20], 0
je 0x5edf3c
push dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x34]
mov eax, ebx
call fcn.005ee2f7
cmp dword [ebx + 0x58], 2
jl 0x5edf5a
cmp byte [ebx + 0x14a1], 0
jne 0x5edf56
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
ja 0x5edf5a
xor edx, edx
jmp 0x5edf5f
mov edx, 1
mov byte [esp + 0x40], dl
cmp byte [esp + 0x40], 0
jne 0x5edf89
cmp dword [ebx + 0x30], 2
jl 0x5edf89
mov ecx, dword [ebx + 0x58]
cmp ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
jge 0x5edf89
mov edx, dword [ebx + 0x38]
mov eax, ebx
call fcn.005ee643
test al, al
jne 0x5edf8d
xor ecx, ecx
jmp 0x5edf92
mov ecx, 1
mov byte [esp + 0x41], cl
cmp byte [esp + 0x40], 0
jne 0x5edfa8
cmp byte [esp + 0x41], 0
je 0x5ee0a0
cmp byte [ebx + 0x74], 0
je 0x5ee00b
lea eax, reloc.MSVCRT.dll___dllonexit
mov dword [esp + 0x44], eax
mov dl, byte [ebx + 0x68]
mov byte [esp + 0x48], dl
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [edx + 0x18]
lea eax, [eax + eax*2]
mov byte [ecx + eax*4], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x18]
mov cl, byte [esp + 0x48]
lea edx, [edx + edx*2]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [esp + 0x44]
inc dword [edx + 0x1c]
mov eax, dword [edx + 0x1c]
cmp eax, 0x4000
jb 0x5ee007
mov eax, dword [esp + 0x44]
call fcn.005f615f
mov byte [ebx + 0x74], 0
cmp byte [ebx + 0x64], 0
je 0x5ee022
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x60]
mov eax, ebx
call fcn.005eef13
mov byte [ebx + 0x64], 0
cmp byte [esp + 0x41], 0
je 0x5ee04a
xor edx, edx
mov dl, byte [esp + 0xc]
mov dword [ebx + 0x68], edx
mov ecx, dword [ebx + 0x6c]
mov dword [ebx + 0x78], ecx
mov eax, dword [ebx + 0x54]
mov dword [ebx + 0x6c], eax
mov edx, dword [ebx + 0x58]
mov dword [ebx + 0x70], edx
mov byte [ebx + 0x74], 1
jmp 0x5ee08b
lea eax, reloc.MSVCRT.dll___dllonexit
mov dl, byte [esp + 0xc]
mov byte [esp + 0x49], dl
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
mov edx, dword [eax + 0x18]
mov byte [edx + ecx*4], 0
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
mov edx, dword [eax + 0x18]
lea edx, [edx + ecx*4 + 1]
mov cl, byte [esp + 0x49]
mov byte [edx], cl
inc dword [eax + 0x1c]
mov edx, dword [eax + 0x1c]
cmp edx, 0x4000
jb 0x5ee08b
call fcn.005f615f
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], eax
jmp 0x5ee20a
mov eax, ebx
call fcn.005ef07b
mov edx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
inc edx
and edx, dword [ebx + 0x24]
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], edx
xor ecx, ecx
mov dword [esp + 0x4c], ecx
jmp 0x5ee1fc
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov edi, dword [ebx]
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax]
lea edx, [eax + 1]
and edx, dword [ebx + 0x24]
movzx edx, byte [edi + edx]
shl edx, 8
add edx, ecx
mov dword [esp + 0x50], edx
mov edx, dword [ebx]
mov edi, dword [ebx]
movzx edi, byte [edi + eax + 1]
movzx edx, byte [edx + eax + 2]
mov edi, dword [esi + edi*4]
shl edi, 3
mov edx, dword [esi + edx*4]
shl edx, 7
add edx, edi
mov edi, dword [ebx]
add edx, ecx
mov ecx, dword [ebx]
and edx, 0x3ffff
movzx ecx, byte [ecx + eax + 3]
mov ecx, dword [esi + ecx*4]
add ecx, edx
and ecx, 0x3ffff
mov dword [esp + 0x54], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax + 4]
mov edi, dword [esi + ecx*4]
mov ecx, dword [ebx + 0x10]
add edi, edi
add edi, dword [esp + 0x54]
and edi, dword [ebx + 0x1c]
mov ecx, dword [ecx + edi*4]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x50]
mov ebp, dword [ebx + 4]
and ecx, 0x3fff
lea ecx, [ebp + ecx]
push ecx
pop ecx
mov byte [ecx], al
mov ecx, dword [ebx + 8]
mov word [ecx + edx*2], ax
mov ecx, dword [esp + 0x54]
mov edx, dword [ebx + 0xc]
mov dword [edx + ecx*4], eax
mov edx, dword [ebx + 0x10]
mov dword [edx + edi*4], eax
mov edx, dword [esp + 0x58]
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx + 2]
mov ecx, dword [esi + ecx*4]
shl ecx, 7
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx + 1]
mov ecx, dword [esi + ecx*4]
shl ecx, 3
add dword [esp + 0x60], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx]
add dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x60]
and ecx, 0x3ffff
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx + 3]
mov ecx, dword [esi + ecx*4]
add ecx, dword [esp + 0x5c]
and ecx, 0x3ffff
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx]
movzx edx, byte [ecx + edx + 4]
mov edx, dword [esi + edx*4]
add edx, edx
add edx, dword [esp + 0x64]
and edx, dword [ebx + 0x1c]
cmp edi, edx
je 0x5ee1de
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x58]
mov dword [edx + eax*4], ecx
mov eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], eax
inc dword [esp + 0x4c]
mov eax, dword [ebx + 0x58]
dec eax
cmp eax, dword [esp + 0x4c]
jg 0x5ee0c2
lea edx, reloc.MSVCRT.dll___dllonexit
mov dword [esp + 0x68], edx
mov ecx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
mov edx, dword [eax]
sub edx, dword [esp + 0x6c]
and edx, dword [ecx + reloc.MSVCRT.dll___dllonexit]
cmp edx, 0x111
jae 0x5ee247
mov eax, dword [esp + 0x68]
call fcn.005f4777
mov dl, 1
jmp 0x5ee249
xor edx, edx
test dl, dl
je 0x5edb4b
cmp byte [ebx + 0x74], 0
je 0x5ee2b5
lea eax, reloc.MSVCRT.dll___dllonexit
mov dword [esp + 0x70], eax
mov cl, byte [ebx + 0x68]
mov byte [esp + 0x74], cl
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov edx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x18]
lea edx, [edx + edx*2]
mov byte [eax + edx*4], 0
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0x1c]
mov edx, dword [eax + 0x18]
mov al, byte [esp + 0x74]
lea ecx, [ecx + ecx*2]
mov byte [edx + ecx*4 + 1], al
mov edx, dword [esp + 0x70]
inc dword [edx + 0x1c]
mov ecx, dword [edx + 0x1c]
cmp ecx, 0x4000
jb 0x5ee2b1
mov eax, dword [esp + 0x70]
call fcn.005f615f
mov byte [ebx + 0x74], 0
cmp byte [ebx + 0x64], 0
je 0x5ee2cc
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x60]
mov eax, ebx
call fcn.005eef13
mov byte [ebx + 0x64], 0
mov eax, 1
jmp 0x5ee2df
mov edx, dword [ebx + reloc.MSVCRT.dll___dllonexit]
xor ecx, ecx
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + reloc.MSVCRT.dll___dllonexit]
jle 0x5ee2d3
xor eax, eax
mov dword [ebx + reloc.MSVCRT.dll___dllonexit], eax
add esp, 0x78
pop ebp
pop edi
pop esi
pop ebx
ret